From 22580e31861a8811338e8d31af47dcf67a4ac29a Mon Sep 17 00:00:00 2001 From: Sem Date: Mon, 17 Oct 2011 11:51:42 +0200 Subject: Group menu fixed: wiki link only appears when group wiki is enabled. --- start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3