]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Group menu fixed: wiki link only appears when group wiki is enabled.
authorSem <sembrestels@riseup.net>
Mon, 17 Oct 2011 09:51:42 +0000 (11:51 +0200)
committerSem <sembrestels@riseup.net>
Mon, 17 Oct 2011 09:51:42 +0000 (11:51 +0200)
start.php

index 2dfe4b7e09dacc882e123ab6209f7cb709a27bd3..7a31a6ca77f6adad886681ec87b4ed106ec2255b 100644 (file)
--- 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;