aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Wiki.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-10-09 21:22:57 +0200
committerMario Vavti <mario@mariovavti.com>2017-10-09 21:22:57 +0200
commitcc1ffff7cdfe5881636b6d2de3fe16f0094b5d69 (patch)
tree455abf25ed534ddcadfd595f3484c4ef6ff74a2a /Zotlabs/Module/Wiki.php
parent5698462588066b942d7f8784d06942385db8daa4 (diff)
downloadvolse-hubzilla-cc1ffff7cdfe5881636b6d2de3fe16f0094b5d69.tar.gz
volse-hubzilla-cc1ffff7cdfe5881636b6d2de3fe16f0094b5d69.tar.bz2
volse-hubzilla-cc1ffff7cdfe5881636b6d2de3fe16f0094b5d69.zip
feed untranslated appnames to nav_set_selected() and query for the active app directly to get app details
Diffstat (limited to 'Zotlabs/Module/Wiki.php')
-rw-r--r--Zotlabs/Module/Wiki.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index 13144b61e..d6a01af11 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -69,11 +69,6 @@ class Wiki extends \Zotlabs\Web\Controller {
goaway('/' . argv(0));
}
- nav_set_selected([
- 'name' => t('Wiki'),
- 'url' =>'/wiki/' . $nick
- ]);
-
$observer_hash = get_observer_hash();
// Determine if the observer is the channel owner so the ACL dialog can be populated
@@ -81,6 +76,8 @@ class Wiki extends \Zotlabs\Web\Controller {
$wiki_owner = true;
+ nav_set_selected('Wiki');
+
// Obtain the default permission settings of the channel
$owner_acl = array(
'allow_cid' => $owner['channel_allow_cid'],