diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-07-12 00:40:12 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-07-12 00:40:12 +0200 |
commit | d8f03450e7564f8a790ce514fa98330aa8535229 (patch) | |
tree | 7f11bdb43264225006a38cbe52fd5be9033198ba /mod/mitem.php | |
parent | 138e0fe4456068a2316c8462a85f4ae2727ee93c (diff) | |
download | volse-hubzilla-d8f03450e7564f8a790ce514fa98330aa8535229.tar.gz volse-hubzilla-d8f03450e7564f8a790ce514fa98330aa8535229.tar.bz2 volse-hubzilla-d8f03450e7564f8a790ce514fa98330aa8535229.zip |
make menu creation for sys channel work
Diffstat (limited to 'mod/mitem.php')
-rw-r--r-- | mod/mitem.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mod/mitem.php b/mod/mitem.php index c4c293d1e..e3341f5de 100644 --- a/mod/mitem.php +++ b/mod/mitem.php @@ -44,9 +44,6 @@ function mitem_post(&$a) { if(! $a->data['menu']) return; - - $channel = $a->get_channel(); - if(!$_REQUEST['mitem_desc'] || !$_REQUEST['mitem_link']) { notice( t('Unable to create element.') . EOL); return; @@ -90,9 +87,6 @@ function mitem_post(&$a) { } - - - } @@ -155,6 +149,7 @@ function mitem_content(&$a) { $create = replace_macros(get_markup_template('mitemedit.tpl'), array( '$menu_id' => $a->data['menu']['menu_id'], + '$action' => 'mitem/' . $a->data['menu']['menu_id'] . (($a->is_sys) ? '?f=&sys=1' : ''), '$permissions' => t('Menu Item Permissions'), '$permdesc' => t("\x28click to open/close\x29"), '$aclselect' => populate_acl($perm_defaults,false), |