1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Removed commented-out code.

This commit is contained in:
Cameron 2013-05-10 02:46:09 -07:00
parent b61b3cd4bd
commit 16af1a3b11

View File

@ -65,22 +65,23 @@ class e_menu
// print_a($eMenuArea);
if($_SERVER['E_DEV_MENU'] == 'true')
{
$layouts = e107::getPref('menu_layouts');
if(!is_array($layouts))
// print_a($eMenuArea);
if($_SERVER['E_DEV_MENU'] == 'true') // New in v2.x
{
$converted = $this->convertMenuTable();
e107::getConfig('core')->set('menu_layouts', $converted)->save();
$layouts = e107::getPref('menu_layouts');
if(!is_array($layouts))
{
$converted = $this->convertMenuTable();
e107::getConfig('core')->set('menu_layouts', $converted)->save();
}
$eMenuArea = $this->getData(THEME_LAYOUT);
}
$eMenuArea = $this->getData(THEME_LAYOUT);
}
//print_a($eMenuArea);
//$eMenuArea = $this->getDataLegacy();
// print_a($eMenuArea);
else // the old v1.x way.
{
$eMenuArea = $this->getDataLegacy();
}
$total = array();
foreach($eMenuArea as $area => $val)