aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Wiki.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-05-21 21:55:09 -0400
committerAndrew Manning <tamanning@zoho.com>2016-05-21 21:55:09 -0400
commita36bef7979aecd72751d319f85b7037991979e35 (patch)
tree30b24ac811becd3e32cbeb260e11bea66ef4445d /Zotlabs/Module/Wiki.php
parent049147a9d78b981482297c3daf48c67f31754259 (diff)
downloadvolse-hubzilla-a36bef7979aecd72751d319f85b7037991979e35.tar.gz
volse-hubzilla-a36bef7979aecd72751d319f85b7037991979e35.tar.bz2
volse-hubzilla-a36bef7979aecd72751d319f85b7037991979e35.zip
List of wikis populates with links according to observer permissions.
Diffstat (limited to 'Zotlabs/Module/Wiki.php')
-rw-r--r--Zotlabs/Module/Wiki.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index c4546e5ef..53a3eb26b 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -48,7 +48,22 @@ class Wiki extends \Zotlabs\Web\Controller {
'acl' => populate_acl($channel_acl),
'bang' => ''
);
+// $wikiheader = t('Wiki Sandbox');
+// $hide_editor = false;
+ if(argc()<3) {
+ $wikiheader = t('Wiki Sandbox');
+ $hide_editor = false;
+ } elseif (argc()<4) {
+ $wikiheader = 'Empty wiki: ' . rawurldecode(argv(2)); // show wiki name
+ $hide_editor = true;
+ } elseif (argc()<5) {
+ $wikiheader = rawurldecode(argv(2)) . ': ' . rawurldecode(argv(3)); // show wiki name and page
+ $hide_editor = false;
+ }
+
$o .= replace_macros(get_markup_template('wiki.tpl'),array(
+ '$wikiheader' => $wikiheader,
+ '$hideEditor' => $hide_editor,
'$channel' => $channel['channel_address'],
'$lockstate' => $x['lockstate'],
'$acl' => $x['acl'],