mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Admin Log function fixes. Preference saving details stored correctly.
This commit is contained in:
13
class2.php
13
class2.php
@@ -1492,21 +1492,28 @@ function get_user_data($uid, $extra = '')
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
|
||||
//SO MUCH DEPRECATED - use e107::getConfig(alias)->save() instead
|
||||
//SO MUCH DEPRECATED
|
||||
/**
|
||||
* @deprecated
|
||||
* @example Use instead: e107::getConfig(alias)->->setPref($array)->save(); Not to be used for saving plugin or theme prefs!
|
||||
*/
|
||||
function save_prefs($table = 'core', $uid = USERID, $row_val = '')
|
||||
{
|
||||
global $pref, $user_pref, $tp, $PrefCache, $sql, $eArrayStorage, $theme_pref;
|
||||
|
||||
if(e107::getPref('developer'))
|
||||
{
|
||||
$backtrace = debug_backtrace(false);
|
||||
|
||||
e107::getAdminLog()->log_event(
|
||||
'Deprecated call - save_prefs()',
|
||||
'Call to deprecated function save_prefs() (class2.php)',
|
||||
"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(debug_backtrace(), true).'</pre>');
|
||||
|
||||
e107::getMessage()->addDebug('Deprecated save_prefs() backtrace:<pre>'."\n".print_r($backtrace, true).'</pre>');
|
||||
}
|
||||
|
||||
switch($table)
|
||||
|
Reference in New Issue
Block a user