aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2012-06-26 21:41:58 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2012-06-26 21:41:58 +0200
commit0e264d23ae1b4c4a186cb855ed984bb082908fbb (patch)
treeaa101aac2ad6fde7dba1a501eca4b1e33d12c4cd /start.php
parentf7096ad23eefdb9bab187975544bcbd6eddf8c88 (diff)
downloadelgg-0e264d23ae1b4c4a186cb855ed984bb082908fbb.tar.gz
elgg-0e264d23ae1b4c4a186cb855ed984bb082908fbb.tar.bz2
more changes to support event polls
Diffstat (limited to 'start.php')
-rw-r--r--start.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/start.php b/start.php
index ebd88d541..dd5437944 100644
--- a/start.php
+++ b/start.php
@@ -66,7 +66,7 @@ function event_calendar_init() {
elgg_extend_view('css/elgg', 'event_calendar/css');
$event_calendar_listing_format = elgg_get_plugin_setting('listing_format', 'event_calendar');
- if (elgg_plugin_exists('event_poll') || ($event_calendar_listing_format == 'full')) {
+ if (elgg_is_active_plugin('event_poll') || ($event_calendar_listing_format == 'full')) {
elgg_extend_view('css/elgg', 'fullcalendar/css');
$plugin_js = elgg_get_simplecache_url('js', 'event_calendar/fullcalendar');
elgg_register_js('elgg.full_calendar', $plugin_js);
@@ -293,7 +293,7 @@ function event_calendar_entity_menu_setup($hook, $type, $return, $params) {
if ($handler != 'event_calendar') {
return $return;
}
- if (elgg_plugin_exists('event_poll') && $entity->canEdit() && $entity->schedule_type == 'poll') {
+ if (elgg_is_active_plugin('event_poll') && $entity->canEdit() && $entity->schedule_type == 'poll') {
$options = array(
'name' => 'schedule',
'text' => elgg_echo('event_poll:schedule_button'),