aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_forums.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-06-20 15:41:02 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:49 +0200
commit0f78b4699acd823f773214497f68840178a8b82e (patch)
treea7fda86716d646d6677aa2701f30e820d94670f7 /phpBB/includes/acp/acp_forums.php
parent2be60b80ae6fc1da09af8eeaffc8d72aafc0c3b1 (diff)
downloadforums-0f78b4699acd823f773214497f68840178a8b82e.tar
forums-0f78b4699acd823f773214497f68840178a8b82e.tar.gz
forums-0f78b4699acd823f773214497f68840178a8b82e.tar.bz2
forums-0f78b4699acd823f773214497f68840178a8b82e.tar.xz
forums-0f78b4699acd823f773214497f68840178a8b82e.zip
[feature/php-events] Replace core.acp_forums_add_forum_data
Add missing global $phpbb_dispatcher, add $action and name the event better PHPBB3-9550
Diffstat (limited to 'phpBB/includes/acp/acp_forums.php')
-rw-r--r--phpBB/includes/acp/acp_forums.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php
index f71e5f85b0..b634a3d9a0 100644
--- a/phpBB/includes/acp/acp_forums.php
+++ b/phpBB/includes/acp/acp_forums.php
@@ -25,7 +25,7 @@ class acp_forums
function main($id, $mode)
{
- global $db, $user, $auth, $template, $cache, $request;
+ global $db, $user, $auth, $template, $cache, $request, $phpbb_dispatcher;
global $config, $phpbb_admin_path, $phpbb_root_path, $phpEx;
$user->add_lang('acp/forums');
@@ -107,9 +107,6 @@ class acp_forums
'forum_id' => $forum_id
);
- $vars = array('forum_data');
- extract($phpbb_dispatcher->trigger_event('core.acp_forums_add_forum_data', compact($vars)));
-
// No break here
case 'add':
@@ -153,6 +150,9 @@ class acp_forums
'forum_password_unset' => request_var('forum_password_unset', false),
);
+ $vars = array('action', 'forum_data');
+ extract($phpbb_dispatcher->trigger_event('core.acp_forums_modify_forum_data', compact($vars)));
+
// On add, add empty forum_options... else do not consider it (not updating it)
if ($action == 'add')
{