mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/10714] Rely on global instead of creating an instance
PHPBB3-10714
This commit is contained in:
@@ -3367,12 +3367,6 @@ function add_log()
|
||||
return false;
|
||||
}
|
||||
|
||||
// no log class set, create a temporary one ourselves to keep backwards compatibility
|
||||
if ($phpbb_log === null)
|
||||
{
|
||||
$phpbb_log = new phpbb_log(LOG_TABLE);
|
||||
}
|
||||
|
||||
$mode = array_shift($args);
|
||||
|
||||
// This looks kind of dirty, but add_log has some additional data before the log_operation
|
||||
|
Reference in New Issue
Block a user