Skip to content

Commit

Permalink
[ticket/13542] Update core.ucp_prefs_personal_data to include $error
Browse files Browse the repository at this point in the history
Update the event so extensions will be able to validate (and deny) changes.

PHPBB3-13542
  • Loading branch information
paul999 committed Jan 24, 2015
1 parent 9cdbb69 commit b0383a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phpBB/includes/ucp/ucp_prefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ function main($id, $mode)
* @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)
Expand Down

0 comments on commit b0383a9

Please sign in to comment.