allow menu management even if there are no menu items

This commit is contained in:
friendica 2013-09-07 02:04:15 -07:00
parent d194ee091a
commit 9ba6fd7d28
2 changed files with 17 additions and 18 deletions

View File

@ -111,8 +111,8 @@ function mitem_content(&$a) {
local_user() local_user()
); );
if($r) {
$o = replace_macros(get_markup_template('mitemlist.tpl'),array( $o .= replace_macros(get_markup_template('mitemlist.tpl'),array(
'$title' => t('Manage Menu Elements'), '$title' => t('Manage Menu Elements'),
'$menuname' => $a->data['menu']['menu_name'], '$menuname' => $a->data['menu']['menu_name'],
'$menudesc' => $a->data['menu']['menu_desc'], '$menudesc' => $a->data['menu']['menu_desc'],
@ -128,7 +128,6 @@ function mitem_content(&$a) {
'$hintedit' => t('Edit this menu item') '$hintedit' => t('Edit this menu item')
)); ));
}
return $o; return $o;

View File

@ -1 +1 @@
2013-09-06.428 2013-09-07.429