diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2011-10-19 19:56:43 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2011-10-19 19:56:43 +0200 |
commit | 1ca017f9f9f8b44fbdcb08105a52e059df6bb504 (patch) | |
tree | 0d736333adcead39658fe9e33f16c89feb8add83 /start.php | |
parent | 9fe3317951c5582e381bc4ab7b6b21f54ec26b36 (diff) | |
download | elgg-1ca017f9f9f8b44fbdcb08105a52e059df6bb504.tar.gz elgg-1ca017f9f9f8b44fbdcb08105a52e059df6bb504.tar.bz2 |
added proper check for group enabled calendar and renamed some deprecated functions
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |