aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-11-18 22:10:55 -0500
committerAndrew Manning <tamanning@zoho.com>2016-11-18 22:10:55 -0500
commit16281c626b7db96e5af3e05179315b4f0dc33d1c (patch)
tree26d41d8bda53b2ae45c94f7742b59bbb15dff0f7 /Zotlabs/Module
parentd24e867603fd253ea42050057896422beeba59db (diff)
downloadvolse-hubzilla-16281c626b7db96e5af3e05179315b4f0dc33d1c.tar.gz
volse-hubzilla-16281c626b7db96e5af3e05179315b4f0dc33d1c.tar.bz2
volse-hubzilla-16281c626b7db96e5af3e05179315b4f0dc33d1c.zip
Hide all content if no wiki is selected except for a message saying to choose one.
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Wiki.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index 45a0ab4d6..c4fa63673 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -128,7 +128,7 @@ class Wiki extends \Zotlabs\Web\Controller {
require_once('library/markdown.php');
$content = t('"# Wiki Sandbox\n\nContent you **edit** and **preview** here *will not be saved*."');
$renderedContent = Markdown(json_decode($content));
- $hide_editor = false;
+ $hide_editor = true;
$showPageControls = false;
$showNewWikiButton = $wiki_owner;
$showNewPageButton = false;
@@ -209,7 +209,8 @@ class Wiki extends \Zotlabs\Web\Controller {
$o .= replace_macros(get_markup_template('wiki.tpl'),array(
'$wikiheaderName' => $wikiheaderName,
'$wikiheaderPage' => $wikiheaderPage,
- '$hideEditor' => $hide_editor,
+ '$hideEditor' => $hide_editor, // True will completely hide the content section and is used for the case of no wiki selected
+ '$chooseWikiMessage' => t('Choose an available wiki from the list on the left.'),
'$showPageControls' => $showPageControls,
'$editOrSourceLabel' => (($showPageControls) ? t('Edit') : t('Source')),
'$tools_label' => 'Wiki Tools',