]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
hide entity_admins bit if the entity_admins plugin is not active
authorKevin Jardine <kevinjardine@yahoo.com>
Wed, 4 Apr 2012 10:17:39 +0000 (12:17 +0200)
committerKevin Jardine <kevinjardine@yahoo.com>
Wed, 4 Apr 2012 10:17:39 +0000 (12:17 +0200)
views/default/forms/event_calendar/edit.php

index 713fb9abc593bd4fdb797e26650997f9aee85ba6..260e8afe0d3a3c8f17d251a8f1c152c8852000a0 100644 (file)
@@ -265,10 +265,12 @@ if($event_calendar_hide_access == 'yes') {
        $body .= elgg_view("input/access",array('name' => 'access_id','value'=>$access));
        $body .= '</p>';
 }
-$body .= elgg_echo('event_calendar:share_ownership:label');
-$body .= '<br />';
-$body .= elgg_echo('event_calendar:share_ownership:description');
-$body .= elgg_view('input/entity_admins_dropdown',array('entity'=>$event));
+if (elgg_plugin_exists('entity_admins')) {
+       $body .= elgg_echo('event_calendar:share_ownership:label');
+       $body .= '<br />';
+       $body .= elgg_echo('event_calendar:share_ownership:description');
+       $body .= elgg_view('input/entity_admins_dropdown',array('entity'=>$event));
+}
 $body .= '</div>';
 
 if ($event_calendar_region_display == 'yes' || $event_calendar_type_display == 'yes' || $event_calendar_fewer_fields != 'yes') {