1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-10 01:26:29 +02:00

Menu Manager $pref loop fix.

This commit is contained in:
Cameron
2013-05-20 17:09:58 -07:00
parent de24998308
commit e55b3cbbd9

View File

@ -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;
} }