show main menu page even if no menus exist
This commit is contained in:
parent
00c9995766
commit
efb730cedc
@ -45,7 +45,7 @@ function menu_content(&$a) {
|
|||||||
if(argc() == 1) {
|
if(argc() == 1) {
|
||||||
// list menus
|
// list menus
|
||||||
$x = menu_list(local_user());
|
$x = menu_list(local_user());
|
||||||
if($x) {
|
|
||||||
$o = replace_macros(get_markup_template('menulist.tpl'),array(
|
$o = replace_macros(get_markup_template('menulist.tpl'),array(
|
||||||
'$title' => t('Manage Menus'),
|
'$title' => t('Manage Menus'),
|
||||||
'$menus' => $x,
|
'$menus' => $x,
|
||||||
@ -57,7 +57,7 @@ function menu_content(&$a) {
|
|||||||
'$hintcontent' => t('Edit menu contents'),
|
'$hintcontent' => t('Edit menu contents'),
|
||||||
'$hintedit' => t('Edit this menu')
|
'$hintedit' => t('Edit this menu')
|
||||||
));
|
));
|
||||||
}
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user