aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2015-01-28 09:27:16 +0100
committerTristan Darricau <github@nicofuma.fr>2015-01-28 09:27:16 +0100
commit0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb (patch)
tree527e1475e1e0fd0f011c56e3c2e56c769e08f8fa /phpBB/includes/functions_messenger.php
parent828aa34ff99cecef3442e2d28dae5734f7db6e12 (diff)
parent7fc586080bf5e7b6e90dcf44526200d7c9356d57 (diff)
downloadforums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.gz
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.bz2
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.xz
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.zip
Merge pull request #3263 from MGaetan89/ticket/13468
[ticket/13468] Change add_log() calls with $phpbb_log->add() * MGaetan89/ticket/13468: [ticket/13468] Update calls to `add_log()`
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index 1a9b1f9e11..6ea80f2a66 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -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));
}
/**