[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:
paulsohier 2015-01-24 18:53:33 +01:00
parent 9cdbb69f9e
commit b0383a90e1

View file

@ -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)