aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Frèrejean <erikfrerejean@phpbb.com>2012-04-10 22:19:18 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:47 +0200
commit05c0d1ad177342eb40ee97c1ae7452aa90f6583f (patch)
treebc67855baee02966304f9f8f98b1709726bbd77e
parentb04141b14f2fe5a804e55c6e4f94869b9f4e4a6a (diff)
downloadforums-05c0d1ad177342eb40ee97c1ae7452aa90f6583f.tar
forums-05c0d1ad177342eb40ee97c1ae7452aa90f6583f.tar.gz
forums-05c0d1ad177342eb40ee97c1ae7452aa90f6583f.tar.bz2
forums-05c0d1ad177342eb40ee97c1ae7452aa90f6583f.tar.xz
forums-05c0d1ad177342eb40ee97c1ae7452aa90f6583f.zip
[feature/events] Correct core.acp_profile_edit event
Still used the "old" way. PHPBB3-9550
-rw-r--r--phpBB/includes/acp/acp_profile.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php
index 43426e86a7..1b542c2bfb 100644
--- a/phpBB/includes/acp/acp_profile.php
+++ b/phpBB/includes/acp/acp_profile.php
@@ -27,9 +27,10 @@ class acp_profile
function main($id, $mode)
{
- global $config, $db, $user, $auth, $template, $cache, $phpbb_dispatcher;
+ global $config, $db, $user, $auth, $template, $cache;
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix;
global $request;
+ global $phpbb_dispatcher;
include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
@@ -876,10 +877,8 @@ class acp_profile
}
}
- $vars = array('field_row', 'visibility_ary', 'exclude');
- $event = new phpbb_event_data(compact($vars));
- $phpbb_dispatcher->dispatch('core.acp_profile_edit', $event);
- extract($event->get_data_filtered($vars));
+ $vars = array('field_row', 'visibility_ary', 'exclude');
+ extract($phpbb_dispatcher->trigger_event('core.acp_profile_edit', compact($vars)));
break;
}