aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'start.php')
-rw-r--r--start.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/start.php b/start.php
index 24a100f9f..ed0ba41db 100644
--- a/start.php
+++ b/start.php
@@ -107,8 +107,9 @@ function event_calendar_init() {
* Add a menu item to an ownerblock
*/
function event_calendar_owner_block_menu($hook, $type, $return, $params) {
+ elgg_load_library('elgg:event_calendar');
if (elgg_instanceof($params['entity'], 'group')) {
- if ($params['entity']->event_calendar_enable != "no") {
+ if (event_calendar_activated_for_group($params['entity'])) {
$url = "event_calendar/group/{$params['entity']->guid}";
$item = new ElggMenuItem('event_calendar', elgg_echo('event_calendar:group'), $url);
$return[] = $item;