aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Wiki_pages.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-16 01:06:44 -0700
committerzotlabs <mike@macgirvin.com>2017-09-16 01:06:44 -0700
commit991db806466d114b4ec179af9930e859bb21843b (patch)
treef3d8a5f09ba9c5b36c9bc8e0176b3d11cba732cf /Zotlabs/Widget/Wiki_pages.php
parentb1876ac14fc4f9b7e39989ef7e69c8135a25c13f (diff)
parentcb3fb0049f64a92668bc94746dc55cc905683699 (diff)
downloadvolse-hubzilla-991db806466d114b4ec179af9930e859bb21843b.tar.gz
volse-hubzilla-991db806466d114b4ec179af9930e859bb21843b.tar.bz2
volse-hubzilla-991db806466d114b4ec179af9930e859bb21843b.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Widget/Wiki_pages.php')
-rw-r--r--Zotlabs/Widget/Wiki_pages.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Wiki_pages.php b/Zotlabs/Widget/Wiki_pages.php
index 3999d9858..f98081da0 100644
--- a/Zotlabs/Widget/Wiki_pages.php
+++ b/Zotlabs/Widget/Wiki_pages.php
@@ -35,6 +35,7 @@ class Wiki_pages {
if (!$wikiname) {
$wikiname = '';
}
+ $typelock = $w['typelock'];
}
$can_create = perm_is_allowed(\App::$profile['uid'],get_observer_hash(),'write_wiki');
@@ -50,6 +51,8 @@ class Wiki_pages {
'$canadd' => $can_create,
'$candel' => $can_delete,
'$addnew' => t('Add new page'),
+ '$typelock' => $typelock,
+ '$lockedtype' => $w['mimeType'],
'$mimetype' => mimetype_select(0,$w['mimeType'], [ 'text/markdown','text/bbcode', 'text/plain' ]),
'$pageName' => array('pageName', t('Page name')),
'$refresh' => $arr['refresh']