]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
add button always appears, even for event polls, fixes issue #37
authorKevin Jardine <kevinjardine@yahoo.com>
Sun, 22 Jul 2012 11:24:48 +0000 (13:24 +0200)
committerKevin Jardine <kevinjardine@yahoo.com>
Sun, 22 Jul 2012 11:24:48 +0000 (13:24 +0200)
models/model.php

index 13fe907def73a3d2f17b5e63ec584ce8b391c73b..7d0d06a3f0428660dfd05b1d5e746a8cd1926ac2 100644 (file)
@@ -1481,7 +1481,6 @@ function event_calendar_get_page_content_list($page_type,$container_guid,$start_
                elgg_push_context('groups');
                elgg_set_page_owner_guid($container_guid);
                $user_guid = elgg_get_logged_in_user_guid();
-               // TODO - ideally avoid the check on the event_poll plugin, perhaps by having event_poll remove the menu item
                if(event_calendar_can_add($container_guid)) {
                        elgg_register_menu_item('title', array(
                                'name' => 'add',