1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 04:12:00 +02:00

Improved admin-log message on deprecated save_prefs() function.

This commit is contained in:
Cameron
2014-01-10 09:32:14 -08:00
parent 11aeeb5de3
commit 479a9c503b
3 changed files with 12 additions and 9 deletions

View File

@@ -1505,13 +1505,12 @@ function save_prefs($table = 'core', $uid = USERID, $row_val = '')
{
$backtrace = debug_backtrace(false);
e107::getAdminLog()->log_event(
e107::getAdminLog()->add(
'Deprecated call - save_prefs()',
"Call to deprecated function save_prefs() (class2.php). Backtrace:\n".print_r($backtrace, true),
E_LOG_INFORMATIVE,
'DEPRECATED'
);
// TODO - debug screen Deprecated Functions (e107)
e107::getMessage()->addDebug('Deprecated save_prefs() backtrace:<pre>'."\n".print_r($backtrace, true).'</pre>');
}