aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-10-17 11:51:42 +0200
committerSem <sembrestels@riseup.net>2011-10-17 11:51:42 +0200
commit22580e31861a8811338e8d31af47dcf67a4ac29a (patch)
tree86f3868525da0fd9557c97327305bbba96e81cce /start.php
parent91fe6103304b175ecde69d356cda25ec957f8a9a (diff)
downloadelgg-22580e31861a8811338e8d31af47dcf67a4ac29a.tar.gz
elgg-22580e31861a8811338e8d31af47dcf67a4ac29a.tar.bz2
Group menu fixed: wiki link only appears when group wiki is enabled.
Diffstat (limited to 'start.php')
-rw-r--r--start.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/start.php b/start.php
index 2dfe4b7e0..7a31a6ca7 100644
--- a/start.php
+++ b/start.php
@@ -142,7 +142,7 @@ function dokuwiki_init(){
* Add a menu item to an ownerblock
*/
function dokuwiki_owner_block_menu($hook, $type, $return, $params) {
- if (elgg_instanceof($params['entity'], 'group') && $params['entity']->dokuwiki_enable != "no") {
+ if (elgg_instanceof($params['entity'], 'group') && $params['entity']->dokuwiki_enable == "yes") {
$url = "dokuwiki/{$params['entity']->guid}/";
$item = new ElggMenuItem('dokuwiki', elgg_echo('dokuwiki:group'), $url);
$return[] = $item;