aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2011-08-29 20:59:54 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2011-08-29 20:59:54 +0200
commit2557245a41579a15dd960e2033f4d5f39ff566ac (patch)
tree15891d7dcef7c4d5da3ae82eb4f6ae9ad10b2521 /views/default/widgets
parent52ddfd1b76cb3e5fbb2a31eb5a3c738bb0d61b54 (diff)
downloadelgg-2557245a41579a15dd960e2033f4d5f39ff566ac.tar.gz
elgg-2557245a41579a15dd960e2033f4d5f39ff566ac.tar.bz2
first step in rewrite for Elgg 1.8
Diffstat (limited to 'views/default/widgets')
-rw-r--r--views/default/widgets/event_calendar/view.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/widgets/event_calendar/view.php b/views/default/widgets/event_calendar/view.php
index 12fff6d60..329046cb0 100644
--- a/views/default/widgets/event_calendar/view.php
+++ b/views/default/widgets/event_calendar/view.php
@@ -12,7 +12,7 @@
*/
// Load event calendar model
- require_once(dirname(dirname(dirname(dirname(dirname(__FILE__)))))."/models/model.php");
+ elgg_load_library('elgg:event_calendar');
//the number of events to display
$num = (int) $vars['entity']->num_display;
@@ -21,7 +21,7 @@
// Get the events
- $events = event_calendar_get_personal_events_for_user(page_owner(),$num);
+ $events = event_calendar_get_personal_events_for_user(elgg_get_page_owner_guid(),$num);
// If there are any events to view, view them
if (is_array($events) && sizeof($events) > 0) {