aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-07-22 20:06:30 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-07-22 20:06:30 +0200
commit0f708646241ed43c86793d8cbe0b5fea7397f0e6 (patch)
tree9a3cf1628541e6c1c897bfd0812a684faec950db /phpBB
parentd6a747fbd0f80e9f2c93f09aab6a0a89ec5afd26 (diff)
downloadforums-0f708646241ed43c86793d8cbe0b5fea7397f0e6.tar
forums-0f708646241ed43c86793d8cbe0b5fea7397f0e6.tar.gz
forums-0f708646241ed43c86793d8cbe0b5fea7397f0e6.tar.bz2
forums-0f708646241ed43c86793d8cbe0b5fea7397f0e6.tar.xz
forums-0f708646241ed43c86793d8cbe0b5fea7397f0e6.zip
[ticket/11582] Move global declaration to beginning of block
PHPBB3-11582
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_permission_roles.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_permission_roles.php b/phpBB/includes/acp/acp_permission_roles.php
index 5657cbe675..17e48d6576 100644
--- a/phpBB/includes/acp/acp_permission_roles.php
+++ b/phpBB/includes/acp/acp_permission_roles.php
@@ -25,7 +25,7 @@ class acp_permission_roles
function main($id, $mode)
{
- global $db, $user, $auth, $template, $cache;
+ global $db, $user, $auth, $template, $cache, $phpbb_container;
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
include_once($phpbb_root_path . 'includes/functions_user.' . $phpEx);
@@ -306,7 +306,6 @@ class acp_permission_roles
trigger_error($user->lang['NO_ROLE_SELECTED'] . adm_back_link($this->u_action), E_USER_WARNING);
}
- global $phpbb_container;
$phpbb_permissions = $phpbb_container->get('acl.permissions');
$template->assign_vars(array(