1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 16:46:50 +02:00

Fixes #566 - prefs not being saved in some plugins.

This commit is contained in:
Cameron
2014-05-24 15:20:06 -07:00
parent e669dd265a
commit 484f2ca330
5 changed files with 19 additions and 35 deletions

View File

@@ -36,7 +36,13 @@ if (isset($_POST['updatesettings']))
$temp['cb_layer_height'] = max(varset($_POST['cb_layer_height'], 200), 150);
$temp['cb_emote'] = intval($_POST['cb_emote']);
$temp['cb_mod'] = intval($_POST['cb_mod']);
if ($admin_log->logArrayDiffs($temp, $pref, 'CHBLAN_01'))
e107::getConfig('core')->setPref($temp)->save(false);
e107::getCache()->clear("nq_chatbox");
/*
if ($admin_log->logArrayXXXXXDiffs($temp, $pref, 'CHBLAN_01'))
{
save_prefs(); // Only save if changes
$e107cache->clear("nq_chatbox");
@@ -45,6 +51,8 @@ if (isset($_POST['updatesettings']))
{
$mes->addInfo(LAN_NO_CHANGE);
}
*/
}