aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-11-18 21:55:29 -0500
committerAndrew Manning <tamanning@zoho.com>2016-11-18 21:55:29 -0500
commitd24e867603fd253ea42050057896422beeba59db (patch)
treea8bae0233152a1c9985d23a98c3dd328cbe41f8f /Zotlabs
parentd5c14a513d435aade7d16d792a7e7a22ff9b01ff (diff)
downloadvolse-hubzilla-d24e867603fd253ea42050057896422beeba59db.tar.gz
volse-hubzilla-d24e867603fd253ea42050057896422beeba59db.tar.bz2
volse-hubzilla-d24e867603fd253ea42050057896422beeba59db.zip
Move page list back out to the side menu, but with the new page form below the new page button like the new wiki form. Disable text editing if viewer lacks edit permission, and change the tab label to Source instead of Edit in that case.
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Wiki.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index edcd6ec58..45a0ab4d6 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -211,6 +211,7 @@ class Wiki extends \Zotlabs\Web\Controller {
'$wikiheaderPage' => $wikiheaderPage,
'$hideEditor' => $hide_editor,
'$showPageControls' => $showPageControls,
+ '$editOrSourceLabel' => (($showPageControls) ? t('Edit') : t('Source')),
'$tools_label' => 'Wiki Tools',
'$showNewWikiButton'=> $showNewWikiButton,
'$showNewPageButton'=> $showNewPageButton,