mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10411] Move globals to the top and use array for cache destroy
PHPBB3-10411
This commit is contained in:
parent
a05a73e047
commit
98092add9e
1 changed files with 2 additions and 4 deletions
|
@ -498,8 +498,7 @@ class acp_groups
|
|||
}
|
||||
}
|
||||
|
||||
$cache->destroy('sql', GROUPS_TABLE);
|
||||
$cache->destroy('sql', TEAMPAGE_TABLE);
|
||||
$cache->destroy('sql', array(GROUPS_TABLE, TEAMPAGE_TABLE));
|
||||
|
||||
$message = ($action == 'edit') ? 'GROUP_UPDATED' : 'GROUP_CREATED';
|
||||
trigger_error($user->lang[$message] . adm_back_link($this->u_action));
|
||||
|
@ -814,7 +813,7 @@ class acp_groups
|
|||
|
||||
public function manage_position()
|
||||
{
|
||||
global $config, $db, $template, $user, $request;
|
||||
global $config, $db, $template, $user, $request, $phpbb_container;
|
||||
|
||||
$this->tpl_name = 'acp_groups_position';
|
||||
$this->page_title = 'ACP_GROUPS_POSITION';
|
||||
|
@ -832,7 +831,6 @@ class acp_groups
|
|||
}
|
||||
else if ($field)
|
||||
{
|
||||
global $phpbb_container;
|
||||
|
||||
$group_position = $phpbb_container->get('groupposition.' . $field);
|
||||
$group_position->set_admin_back_link($this->u_action);
|
||||
|
|
Loading…
Add table
Reference in a new issue