diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-06-05 21:14:30 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-06-05 21:14:30 -0400 |
commit | 2af8105b460d300ba41928734c960f5f70613952 (patch) | |
tree | a7563f9f7dcd561bd8161acf98074500118edc89 /Zotlabs | |
parent | 4528becf4ccbeea3d63f729ed643b5fc7d67f1bb (diff) | |
download | volse-hubzilla-2af8105b460d300ba41928734c960f5f70613952.tar.gz volse-hubzilla-2af8105b460d300ba41928734c960f5f70613952.tar.bz2 volse-hubzilla-2af8105b460d300ba41928734c960f5f70613952.zip |
Hide page history viewer when viewing sandbox
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Wiki.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php index a1dc317ff..0945ad919 100644 --- a/Zotlabs/Module/Wiki.php +++ b/Zotlabs/Module/Wiki.php @@ -30,10 +30,10 @@ class Wiki extends \Zotlabs\Web\Controller { $wiki_owner = false; $showNewWikiButton = false; $showCommitMsg = false; + $hidePageHistory = false; $pageHistory = array(); $local_observer = null; $resource_id = ''; - $pagename = ''; // init() should have forced the URL to redirect to /wiki/channel so assume argc() > 1 $nick = argv(1); @@ -78,6 +78,7 @@ class Wiki extends \Zotlabs\Web\Controller { $showPageControls = false; $showNewWikiButton = $wiki_owner; $showNewPageButton = false; + $hidePageHistory = true; $showCommitMsg = false; break; case 3: @@ -116,6 +117,7 @@ class Wiki extends \Zotlabs\Web\Controller { $showPageControls = $wiki_owner; $showNewWikiButton = $wiki_owner; $showNewPageButton = $wiki_owner; + $hidePageHistory = false; $showCommitMsg = true; $pageHistory = wiki_page_history(array('resource_id' => $resource_id, 'pageUrlName' => $pageUrlName)); break; @@ -131,6 +133,7 @@ class Wiki extends \Zotlabs\Web\Controller { '$showPageControls' => $showPageControls, '$showNewWikiButton'=> $showNewWikiButton, '$showNewPageButton'=> $showNewPageButton, + '$hidePageHistory' => $hidePageHistory, '$showCommitMsg' => $showCommitMsg, '$channel' => $channel['channel_address'], '$resource_id' => $resource_id, |