mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13468] Update calls to add_log()
PHPBB3-13468
This commit is contained in:
@@ -349,7 +349,7 @@ class messenger
|
||||
*/
|
||||
function error($type, $msg)
|
||||
{
|
||||
global $user, $phpEx, $phpbb_root_path, $config, $request;
|
||||
global $user, $phpEx, $phpbb_root_path, $config, $request, $phpbb_log;
|
||||
|
||||
// Session doesn't exist, create it
|
||||
if (!isset($user->session_id) || $user->session_id === '')
|
||||
@@ -372,7 +372,7 @@ class messenger
|
||||
}
|
||||
|
||||
$message .= '<br /><em>' . htmlspecialchars($calling_page) . '</em><br /><br />' . $msg . '<br />';
|
||||
add_log('critical', 'LOG_ERROR_' . $type, $message);
|
||||
$phpbb_log->add('critical', $user->data['user_id'], $user->ip, 'LOG_ERROR_' . $type, false, array($message));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user