mirror of
https://github.com/e107inc/e107.git
synced 2025-08-17 20:01:47 +02:00
Code cleanup
This commit is contained in:
@@ -24,20 +24,13 @@ require_once(e_ADMIN."auth.php");
|
||||
$frm = e107::getForm();
|
||||
$mes = e107::getMessage();
|
||||
|
||||
if (isset($_POST['update_menu']))
|
||||
if(!empty($_POST['update_menu']))
|
||||
{
|
||||
$temp = array();
|
||||
while (list($key, $value) = each($_POST))
|
||||
{
|
||||
if ($value != LAN_UPDATE) // ???
|
||||
{
|
||||
$temp[$key] = $value;
|
||||
}
|
||||
}
|
||||
if ($admin_log->logArrayDiffs($temp,$pref,'MISC_06'))
|
||||
{
|
||||
save_prefs();
|
||||
}
|
||||
$cfg = e107::getConfig();
|
||||
$cfg->set('blogcal_mpr', intval($_POST['blogcal_mpr']));
|
||||
$cfg->set('blogcal_padding', intval($_POST['blogcal_padding']));
|
||||
$cfg->save(true,true,true);
|
||||
|
||||
}
|
||||
|
||||
$ns->tablerender($caption, $mes->render() . $text);
|
||||
|
Reference in New Issue
Block a user