mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
[ticket/10899] Get $phpbb_log from the container
PHPBB3-10899
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user