From ac1eb2d789d81381fd2298c03a1960707e1c90c3 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Tue, 27 May 2014 19:57:25 +0200 Subject: [PATCH] [ticket/10899] Get $phpbb_log from the container PHPBB3-10899 --- phpBB/includes/acp/acp_logs.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/acp/acp_logs.php b/phpBB/includes/acp/acp_logs.php index 11d911151b..c5443ef5ee 100644 --- a/phpBB/includes/acp/acp_logs.php +++ b/phpBB/includes/acp/acp_logs.php @@ -26,7 +26,7 @@ class acp_logs { global $db, $user, $auth, $template, $cache, $phpbb_container; global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx; - global $request, $phpbb_log; + global $request; $user->add_lang('mcp'); @@ -78,6 +78,8 @@ class acp_logs } $conditions['log_type'] = $this->log_type; + + $phpbb_log = $phpbb_container->get('log'); $phpbb_log->delete($mode, $conditions); } else