aboutsummaryrefslogtreecommitdiffstats
path: root/mod/menu.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-14 21:24:40 -0700
committerfriendica <info@friendica.com>2013-08-14 21:24:40 -0700
commitefb730cedcc82fadcb8474d44f8820d92b0187e6 (patch)
tree0f751d02396854d5de0b1f04f803399de00ce94e /mod/menu.php
parent00c99957661a127e2d5956f73c99b843a14bf169 (diff)
downloadvolse-hubzilla-efb730cedcc82fadcb8474d44f8820d92b0187e6.tar.gz
volse-hubzilla-efb730cedcc82fadcb8474d44f8820d92b0187e6.tar.bz2
volse-hubzilla-efb730cedcc82fadcb8474d44f8820d92b0187e6.zip
show main menu page even if no menus exist
Diffstat (limited to 'mod/menu.php')
-rw-r--r--mod/menu.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/menu.php b/mod/menu.php
index 910fc389b..c3302544e 100644
--- a/mod/menu.php
+++ b/mod/menu.php
@@ -45,7 +45,7 @@ function menu_content(&$a) {
if(argc() == 1) {
// list menus
$x = menu_list(local_user());
- if($x) {
+
$o = replace_macros(get_markup_template('menulist.tpl'),array(
'$title' => t('Manage Menus'),
'$menus' => $x,
@@ -57,7 +57,7 @@ function menu_content(&$a) {
'$hintcontent' => t('Edit menu contents'),
'$hintedit' => t('Edit this menu')
));
- }
+
return $o;