mirror of
https://github.com/e107inc/e107.git
synced 2025-07-10 09:36:23 +02:00
Menu Manager $pref loop fix.
This commit is contained in:
@ -76,6 +76,7 @@ class e_menu
|
|||||||
}
|
}
|
||||||
|
|
||||||
$eMenuArea = $this->getData(THEME_LAYOUT);
|
$eMenuArea = $this->getData(THEME_LAYOUT);
|
||||||
|
//print_a($eMenuArea);
|
||||||
}
|
}
|
||||||
else // the old v1.x way.
|
else // the old v1.x way.
|
||||||
{
|
{
|
||||||
@ -83,6 +84,7 @@ class e_menu
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$total = array();
|
$total = array();
|
||||||
foreach($eMenuArea as $area => $val)
|
foreach($eMenuArea as $area => $val)
|
||||||
{
|
{
|
||||||
@ -137,15 +139,14 @@ class e_menu
|
|||||||
*/
|
*/
|
||||||
protected function getData($layout)
|
protected function getData($layout)
|
||||||
{
|
{
|
||||||
$pref = e107::getPref('menu_layouts');
|
$mpref = e107::getPref('menu_layouts');
|
||||||
|
|
||||||
if(!varset($pref[$layout]))
|
if(!varset($mpref[$layout]))
|
||||||
{
|
{
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach($mpref[$layout] as $area=>$v)
|
||||||
foreach($pref[$layout] as $area=>$v);
|
|
||||||
{
|
{
|
||||||
$c = 1;
|
$c = 1;
|
||||||
|
|
||||||
@ -177,6 +178,9 @@ class e_menu
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// print_a($ret);
|
||||||
|
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user