From a36bef7979aecd72751d319f85b7037991979e35 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Sat, 21 May 2016 21:55:09 -0400 Subject: List of wikis populates with links according to observer permissions. --- Zotlabs/Module/Wiki.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Zotlabs/Module/Wiki.php') 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'], -- cgit v1.2.3