1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-21 05:41:58 +02:00

Reworked storage of custom menus.

This commit is contained in:
Cameron
2013-03-06 23:01:16 -08:00
parent 3d26475d97
commit 8895d48dd1
11 changed files with 321 additions and 111 deletions

View File

@@ -1464,9 +1464,12 @@ class e_admin_dispatcher
default:
$k2 = $k;
break;
}
// Access check done above
// if($val['perm']!= null) // check perms
// {
@@ -1478,15 +1481,25 @@ class e_admin_dispatcher
// else
{
$var[$key][$k2] = $v;
}
}
// TODO slide down menu options?
if(!vartrue($var[$key]['link']))
{
$var[$key]['link'] = e_SELF.'?mode='.$tmp[0].'&action='.$tmp[1]; // FIXME - URL based on $modes, remove url key
}
if(varset($val['tab']))
{
$var[$key]['link'] .= "&tab=".$val['tab'];
}
/*$var[$key]['text'] = $val['caption'];
$var[$key]['link'] = (vartrue($val['url']) ? $tp->replaceConstants($val['url'], 'abs') : e_SELF).'?mode='.$tmp[0].'&action='.$tmp[1];
$var[$key]['perm'] = $val['perm']; */