diff options
author | paulsohier <paul999@phpbb.com> | 2015-01-24 18:53:33 +0100 |
---|---|---|
committer | paulsohier <paul999@phpbb.com> | 2015-01-24 18:53:33 +0100 |
commit | b0383a90e1416d14fd5461b4d148386f3cdb4ac4 (patch) | |
tree | bb4fd141679914c0fcb34ed6b51d525f1fb600f8 /phpBB/includes | |
parent | 9cdbb69f9e50f665caad54fc93f64143cb7d8fc8 (diff) | |
download | forums-b0383a90e1416d14fd5461b4d148386f3cdb4ac4.tar forums-b0383a90e1416d14fd5461b4d148386f3cdb4ac4.tar.gz forums-b0383a90e1416d14fd5461b4d148386f3cdb4ac4.tar.bz2 forums-b0383a90e1416d14fd5461b4d148386f3cdb4ac4.tar.xz forums-b0383a90e1416d14fd5461b4d148386f3cdb4ac4.zip |
[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
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/ucp/ucp_prefs.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_prefs.php b/phpBB/includes/ucp/ucp_prefs.php index 2195500b57..111e16685a 100644 --- a/phpBB/includes/ucp/ucp_prefs.php +++ b/phpBB/includes/ucp/ucp_prefs.php @@ -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) |