aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Mitem.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-08-05 15:40:10 -0700
committerredmatrix <git@macgirvin.com>2016-08-05 15:40:10 -0700
commit9068ae68ad59249df92458626808673c96b174f1 (patch)
treef45d6c8adc857f1df3bf368d0118fc83607eb91c /Zotlabs/Module/Mitem.php
parenteeabf514eab20523b847c38cf5befb7f040b7d72 (diff)
parent1bff63bd2e5d1423034094ee9bfc59c2ddb2bd53 (diff)
downloadvolse-hubzilla-9068ae68ad59249df92458626808673c96b174f1.tar.gz
volse-hubzilla-9068ae68ad59249df92458626808673c96b174f1.tar.bz2
volse-hubzilla-9068ae68ad59249df92458626808673c96b174f1.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Module/Mitem.php')
-rw-r--r--Zotlabs/Module/Mitem.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/Zotlabs/Module/Mitem.php b/Zotlabs/Module/Mitem.php
index b64b50c8e..28f51b81b 100644
--- a/Zotlabs/Module/Mitem.php
+++ b/Zotlabs/Module/Mitem.php
@@ -147,12 +147,16 @@ class Mitem extends \Zotlabs\Web\Controller {
else {
$display = (($r) ? 'none' : 'block');
}
-
+
$create = replace_macros(get_markup_template('mitemedit.tpl'), array(
'$menu_id' => \App::$data['menu']['menu_id'],
'$permissions' => t('Menu Item Permissions'),
'$permdesc' => t("\x28click to open/close\x29"),
'$aclselect' => populate_acl($acl->get(),false),
+ '$allow_cid' => acl2json($acl->get()['allow_cid']),
+ '$allow_gid' => acl2json($acl->get()['allow_gid']),
+ '$deny_cid' => acl2json($acl->get()['deny_cid']),
+ '$deny_gid' => acl2json($acl->get()['deny_gid']),
'$mitem_desc' => array('mitem_desc', t('Link Name'), '', 'Visible name of the link','*'),
'$mitem_link' => array('mitem_link', t('Link or Submenu Target'), '', t('Enter URL of the link or select a menu name to create a submenu'), '*', 'list="menu-names"'),
'$usezid' => array('usezid', t('Use magic-auth if available'), true, '', array(t('No'), t('Yes'))),
@@ -226,6 +230,10 @@ class Mitem extends \Zotlabs\Web\Controller {
'$permissions' => t('Menu Item Permissions'),
'$permdesc' => t("\x28click to open/close\x29"),
'$aclselect' => populate_acl($mitem,false),
+ '$allow_cid' => acl2json($mitem['allow_cid']),
+ '$allow_gid' => acl2json($mitem['allow_gid']),
+ '$deny_cid' => acl2json($mitem['deny_cid']),
+ '$deny_gid' => acl2json($mitem['deny_gid']),
'$mitem_id' => intval(argv(2)),
'$mitem_desc' => array('mitem_desc', t('Link text'), $mitem['mitem_desc'], '','*'),
'$mitem_link' => array('mitem_link', t('Link or Submenu Target'), $mitem['mitem_link'], 'Enter URL of the link or select a menu name to create a submenu', '*', 'list="menu-names"'),