mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 18:38:53 +00:00
[ticket/13542] Update core.ucp_prefs_personal_data to include $error
Update the event so extensions will be able to validate (and deny) changes. PHPBB3-13542
This commit is contained in:
parent
9cdbb69f9e
commit
b0383a90e1
1 changed files with 3 additions and 1 deletions
|
@ -67,9 +67,11 @@ class ucp_prefs
|
|||
* @var bool submit Do we display the form only
|
||||
* or did the user press submit
|
||||
* @var array data Array with current ucp options data
|
||||
* @var array error Array with list of errors
|
||||
* @since 3.1.0-a1
|
||||
* @changed 3.1.4-rc1
|
||||
*/
|
||||
$vars = array('submit', 'data');
|
||||
$vars = array('submit', 'data', 'error');
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_prefs_personal_data', compact($vars)));
|
||||
|
||||
if ($submit)
|
||||
|
|
Loading…
Add table
Reference in a new issue