mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Fixed: Search prefs were not being saved.
This commit is contained in:
parent
edbc6dd700
commit
6a71fe0b35
@ -168,8 +168,11 @@ if (isset($_POST['update_prefs']))
|
|||||||
$temp['php_limit'] = intval($_POST['php_limit']);
|
$temp['php_limit'] = intval($_POST['php_limit']);
|
||||||
$temp['boundary'] = intval($_POST['boundary']);
|
$temp['boundary'] = intval($_POST['boundary']);
|
||||||
|
|
||||||
|
e107::getConfig('search')->updatePref($temp)->save(false,true,false);
|
||||||
|
/*
|
||||||
if ($admin_log->logArrayDiffs($temp, $search_prefs, 'SEARCH_01'))
|
if ($admin_log->logArrayDiffs($temp, $search_prefs, 'SEARCH_01'))
|
||||||
{
|
{
|
||||||
|
e107::getConfig('search')->setPref($temp)->save(false,true);
|
||||||
// $tmp = addslashes(serialize($search_prefs));
|
// $tmp = addslashes(serialize($search_prefs));
|
||||||
$tmp = e107::getArrayStorage()->writeArray($search_prefs, true);
|
$tmp = e107::getArrayStorage()->writeArray($search_prefs, true);
|
||||||
$check = $sql -> db_Update("core", "e107_value='".$tmp."' WHERE e107_name='search_prefs'");
|
$check = $sql -> db_Update("core", "e107_value='".$tmp."' WHERE e107_name='search_prefs'");
|
||||||
@ -184,17 +187,19 @@ if (isset($_POST['update_prefs']))
|
|||||||
$mes->addError(LAN_ERROR." ".$sql->getLastErrorNumber().': '.$sql->getLastErrorText());
|
$mes->addError(LAN_ERROR." ".$sql->getLastErrorNumber().': '.$sql->getLastErrorText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else $mes->addInfo(LAN_NO_CHANGE);
|
else $mes->addInfo(LAN_NO_CHANGE);*/
|
||||||
|
|
||||||
unset($temp);
|
unset($temp);
|
||||||
$temp['search_restrict'] = intval($_POST['search_restrict']);
|
$temp['search_restrict'] = intval($_POST['search_restrict']);
|
||||||
$temp['search_highlight'] = intval($_POST['search_highlight']);
|
$temp['search_highlight'] = intval($_POST['search_highlight']);
|
||||||
if ($admin_log->logArrayDiffs($temp, $pref, 'SEARCH_02'))
|
|
||||||
{ //XXX - additional lan search messages
|
e107::getConfig()->setPref($temp)->save(false,true,true);
|
||||||
save_prefs();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$handlers_total = count($search_prefs['core_handlers']) + count($search_prefs['plug_handlers']);
|
$handlers_total = count($search_prefs['core_handlers']) + count($search_prefs['plug_handlers']);
|
||||||
|
|
||||||
if ($query[0] == 'settings')
|
if ($query[0] == 'settings')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user