aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2011-11-08 12:47:41 +0100
committerKevin Jardine <kevinjardine@yahoo.com>2011-11-08 12:47:41 +0100
commit1520b0b67e7ec0129f40e8795eb7ffde4e7c2aac (patch)
treea30530d279220af11b8c47f0d1f8e1654f2dee97 /models
parentdb951f94b6ae60f899f719f17dce4aa6c47edf54 (diff)
downloadelgg-1520b0b67e7ec0129f40e8795eb7ffde4e7c2aac.tar.gz
elgg-1520b0b67e7ec0129f40e8795eb7ffde4e7c2aac.tar.bz2
iCalendar fixes.
Diffstat (limited to 'models')
-rw-r--r--models/model.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/models/model.php b/models/model.php
index 7f6c3d39d..db2bdf95d 100644
--- a/models/model.php
+++ b/models/model.php
@@ -160,11 +160,11 @@ function event_calendar_set_event_from_form($event_guid,$group_guid) {
function event_calendar_get_events_between($start_date,$end_date,$is_count,$limit=10,$offset=0,$container_guid=0,$region='-') {
if ($is_count) {
- $count = event_calendar_get_entities_from_metadata_between('start_date','end_date',
+ $count = event_calendar_get_entities_from_metadata_between2('start_date','end_date',
$start_date, $end_date, "object", "event_calendar", 0, $container_guid, $limit,$offset,"",0,false,true,$region);
return $count;
} else {
- $events = event_calendar_get_entities_from_metadata_between('start_date','end_date',
+ $events = event_calendar_get_entities_from_metadata_between2('start_date','end_date',
$start_date, $end_date, "object", "event_calendar", 0, $container_guid, $limit,$offset,"",0,false,false,$region);
//return event_calendar_vsort($events,'start_date');
return $events;
@@ -1096,6 +1096,7 @@ function event_calendar_send_event_request($event,$user_guid) {
// pages
function event_calendar_get_page_content_list($page_type,$container_guid,$start_date,$display_mode,$filter,$region='-') {
+ elgg_load_js('elgg.event_calendar');
global $autofeed;
$autofeed = true;
if ($page_type == 'group') {
@@ -1164,6 +1165,7 @@ function event_calendar_get_page_content_list($page_type,$container_guid,$start_
$url = elgg_format_url($url);
$menu_options = array(
'name' => 'ical',
+ 'id' => 'event-calendar-ical-link',
'text' => '<img src="'.elgg_get_site_url().'mod/event_calendar/images/ics.png" />',
'href' => $url,
'title' => elgg_echo('feed:ical'),