aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-14 17:14:50 -0700
committerzotlabs <mike@macgirvin.com>2017-09-14 17:14:50 -0700
commitcf120b235117017a81b8a9b1a073919fb1b7d50b (patch)
treede1e922bed55ef09b4651eb9aab5c5cc6ca8f0ec /Zotlabs/Widget
parent6481722fd91a9c4c27c728aa161093fc97217a8e (diff)
downloadvolse-hubzilla-cf120b235117017a81b8a9b1a073919fb1b7d50b.tar.gz
volse-hubzilla-cf120b235117017a81b8a9b1a073919fb1b7d50b.tar.bz2
volse-hubzilla-cf120b235117017a81b8a9b1a073919fb1b7d50b.zip
wiki: lock mimetype
Diffstat (limited to 'Zotlabs/Widget')
-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']