mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10899] Get $phpbb_log from the container
PHPBB3-10899
This commit is contained in:
parent
164f52c3f3
commit
ac1eb2d789
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue