1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[feature/events] Removing the third trigger_event parameter

PHPBB3-9550
This commit is contained in:
Michael Cullum
2012-03-31 13:39:41 +01:00
committed by Joas Schilling
parent 8da33e2654
commit 3f1b4e83ae
12 changed files with 27 additions and 27 deletions

View File

@@ -269,7 +269,7 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)
);
$vars = array('id', 'mode', 'folder_id', 'msg_id', 'folder', 'message_row', 'cp_row');
extract($phpbb_dispatcher->trigger_event('core.ucp_pm_viewmesssage', compact($vars), $vars));
extract($phpbb_dispatcher->trigger_event('core.ucp_pm_viewmesssage', compact($vars)));
// Display the custom profile fields
if (!empty($cp_row['row']))

View File

@@ -55,7 +55,7 @@ class ucp_zebra
if (!empty($data['usernames']))
{
$vars = array('data');
extract($phpbb_dispatcher->trigger_event('core.ucp_zebra_remove', compact($vars), $vars));
extract($phpbb_dispatcher->trigger_event('core.ucp_zebra_remove', compact($vars)));
$sql = 'DELETE FROM ' . ZEBRA_TABLE . '
WHERE user_id = ' . $user->data['user_id'] . '
@@ -190,7 +190,7 @@ class ucp_zebra
}
$vars = array('mode', 'sql_ary');
extract($phpbb_dispatcher->trigger_event('core.ucp_zebra_add', compact($vars), $vars));
extract($phpbb_dispatcher->trigger_event('core.ucp_zebra_add', compact($vars)));
$db->sql_multi_insert(ZEBRA_TABLE, $sql_ary);