1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +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

@@ -1030,17 +1030,12 @@ $columnInfo = array(
$temp['agree_text'] = $tp->toDB($_POST['agree_text']);
$temp['download_denied'] = $tp->toDB($_POST['download_denied']);
$temp['download_reportbroken'] = $_POST['download_reportbroken'];
if ($_POST['download_subsub']) $temp['download_subsub'] = '1'; else $temp['download_subsub'] = '0';
if ($_POST['download_incinfo']) $temp['download_incinfo'] = '1'; else $temp['download_incinfo'] = '0';
if ($admin_log->logArrayDiffs($temp, $pref, 'DOWNL_01'))
{
save_prefs();
// e107::getMessage()->add(DOWLAN_65);
}
else
{
// e107::getMessage()->add(DOWLAN_8);
}
e107::getConfig('core')->setPref($temp)->save(false);
}