mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 09:10:23 +02:00
Issue #2446 e_menu multilan value fix.
This commit is contained in:
@@ -981,18 +981,26 @@ class e_menuManager {
|
||||
}
|
||||
else
|
||||
{
|
||||
unset($_POST['menu_id'], $_POST['mode'], $_POST['menuActivate'], $_POST['menuSetCustomPages']);
|
||||
unset($_POST['menu_id'], $_POST['mode'], $_POST['menuActivate'], $_POST['menuSetCustomPages'], $_POST['e-token']);
|
||||
|
||||
$parms = $tp->filter($_POST);
|
||||
$parms = $sql->escape(e107::serialize($parms));
|
||||
/* $tmp = $sql->retrieve("menus", "menu_parms", " menu_id=".$id);
|
||||
$parms = !empty($tmp) ? e107::unserialize($tmp) : array();
|
||||
|
||||
if(e_DEBUG == true)
|
||||
foreach($_POST as $k=>$v)
|
||||
{
|
||||
// return array('msg'=>print_r($_POST,true),'error'=>true);
|
||||
$parms[$k] = $tp->filter($v);
|
||||
}
|
||||
|
||||
$parms = e107::serialize($parms, 'json');*/
|
||||
|
||||
// if(e_DEBUG == true)
|
||||
{
|
||||
// return array('msg'=>print_r($parms,true),'error'=>true);
|
||||
}
|
||||
$parms = $_POST;
|
||||
}
|
||||
|
||||
$check = $sql->update("menus", "menu_parms=\"".$parms."\" WHERE menu_id=".$id."");
|
||||
$check = e107::getMenu()->updateParms($id,$parms); // $sql->update("menus", "menu_parms=\"".$parms."\" WHERE menu_id=".$id."");
|
||||
|
||||
if($check)
|
||||
{
|
||||
@@ -1796,7 +1804,7 @@ class e_menuManager {
|
||||
|
||||
$ret = $this->menuSaveVisibility();
|
||||
// echo json_encode($ret);
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
if($mode == 'delete')
|
||||
@@ -1811,7 +1819,7 @@ class e_menuManager {
|
||||
$ret = $this->menuDeactivate();
|
||||
// echo json_encode($ret);
|
||||
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1822,9 +1830,9 @@ class e_menuManager {
|
||||
$ret = $this->menuSaveParameters();
|
||||
if(!empty($ret['error']))
|
||||
{
|
||||
echo json_encode($ret);
|
||||
return json_encode($ret);
|
||||
}
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user