mirror of
https://github.com/e107inc/e107.git
synced 2025-07-15 03:56:20 +02:00
Removed commented-out code.
This commit is contained in:
@ -65,22 +65,23 @@ class e_menu
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// print_a($eMenuArea);
|
// print_a($eMenuArea);
|
||||||
if($_SERVER['E_DEV_MENU'] == 'true')
|
if($_SERVER['E_DEV_MENU'] == 'true') // New in v2.x
|
||||||
{
|
|
||||||
$layouts = e107::getPref('menu_layouts');
|
|
||||||
if(!is_array($layouts))
|
|
||||||
{
|
{
|
||||||
$converted = $this->convertMenuTable();
|
$layouts = e107::getPref('menu_layouts');
|
||||||
e107::getConfig('core')->set('menu_layouts', $converted)->save();
|
if(!is_array($layouts))
|
||||||
|
{
|
||||||
|
$converted = $this->convertMenuTable();
|
||||||
|
e107::getConfig('core')->set('menu_layouts', $converted)->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
$eMenuArea = $this->getData(THEME_LAYOUT);
|
||||||
}
|
}
|
||||||
|
else // the old v1.x way.
|
||||||
$eMenuArea = $this->getData(THEME_LAYOUT);
|
{
|
||||||
}
|
$eMenuArea = $this->getDataLegacy();
|
||||||
//print_a($eMenuArea);
|
}
|
||||||
//$eMenuArea = $this->getDataLegacy();
|
|
||||||
|
|
||||||
// print_a($eMenuArea);
|
|
||||||
|
|
||||||
$total = array();
|
$total = array();
|
||||||
foreach($eMenuArea as $area => $val)
|
foreach($eMenuArea as $area => $val)
|
||||||
|
Reference in New Issue
Block a user