aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2011-10-19 19:56:43 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2011-10-19 19:56:43 +0200
commit1ca017f9f9f8b44fbdcb08105a52e059df6bb504 (patch)
tree0d736333adcead39658fe9e33f16c89feb8add83 /start.php
parent9fe3317951c5582e381bc4ab7b6b21f54ec26b36 (diff)
downloadelgg-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.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;