From: Kevin Jardine Date: Wed, 4 Apr 2012 10:17:39 +0000 (+0200) Subject: hide entity_admins bit if the entity_admins plugin is not active X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3e190494ee28af8d27d1b37993d10c110ee7d335;p=lorea%2Felgg.git hide entity_admins bit if the entity_admins plugin is not active --- diff --git a/views/default/forms/event_calendar/edit.php b/views/default/forms/event_calendar/edit.php index 713fb9abc..260e8afe0 100644 --- a/views/default/forms/event_calendar/edit.php +++ b/views/default/forms/event_calendar/edit.php @@ -265,10 +265,12 @@ if($event_calendar_hide_access == 'yes') { $body .= elgg_view("input/access",array('name' => 'access_id','value'=>$access)); $body .= '

'; } -$body .= elgg_echo('event_calendar:share_ownership:label'); -$body .= '
'; -$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 .= '
'; + $body .= elgg_echo('event_calendar:share_ownership:description'); + $body .= elgg_view('input/entity_admins_dropdown',array('entity'=>$event)); +} $body .= ''; if ($event_calendar_region_display == 'yes' || $event_calendar_type_display == 'yes' || $event_calendar_fewer_fields != 'yes') {