[ticket/10899] Get $phpbb_log from the container

PHPBB3-10899
This commit is contained in:
Tristan Darricau 2014-05-27 19:57:25 +02:00
parent 164f52c3f3
commit ac1eb2d789

View file

@ -26,7 +26,7 @@ class acp_logs
{ {
global $db, $user, $auth, $template, $cache, $phpbb_container; global $db, $user, $auth, $template, $cache, $phpbb_container;
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx; global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
global $request, $phpbb_log; global $request;
$user->add_lang('mcp'); $user->add_lang('mcp');
@ -78,6 +78,8 @@ class acp_logs
} }
$conditions['log_type'] = $this->log_type; $conditions['log_type'] = $this->log_type;
$phpbb_log = $phpbb_container->get('log');
$phpbb_log->delete($mode, $conditions); $phpbb_log->delete($mode, $conditions);
} }
else else