diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-04-04 12:17:39 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-04-04 12:17:39 +0200 |
commit | 3e190494ee28af8d27d1b37993d10c110ee7d335 (patch) | |
tree | 3714f215ea967811b689f9258ca178dfb14376c9 /views/default | |
parent | 0b25adcd921149b50845647980284e8ab66d8fed (diff) | |
download | elgg-3e190494ee28af8d27d1b37993d10c110ee7d335.tar.gz elgg-3e190494ee28af8d27d1b37993d10c110ee7d335.tar.bz2 |
hide entity_admins bit if the entity_admins plugin is not active
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/forms/event_calendar/edit.php | 10 |
1 files changed, 6 insertions, 4 deletions
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 .= '</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') { |