From f657a9ebb297ecae181714bb4e05b607dbe5e5a5 Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 5 Sep 2013 21:10:06 +0200 Subject: Removed deprecated function uses. --- views/default/event_calendar/entities/gallery_item.php | 8 ++++---- views/default/event_calendar/groupprofile_calendar_deprecated.php | 2 +- views/default/event_calendar/nav.php | 4 ++-- views/default/plugins/event_calendar/settings.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'views/default') diff --git a/views/default/event_calendar/entities/gallery_item.php b/views/default/event_calendar/entities/gallery_item.php index eb67cc772..9fc1edeca 100644 --- a/views/default/event_calendar/entities/gallery_item.php +++ b/views/default/event_calendar/entities/gallery_item.php @@ -22,9 +22,9 @@ $icon = elgg_view( $banned = $vars['entity']->isBanned(); $rel = ""; -if (page_owner() == $vars['entity']->guid) +if (elgg_get_page_owner_guid() == $vars['entity']->guid) $rel = 'me'; -else if (check_entity_relationship(page_owner(), 'friend', $vars['entity']->guid)) +else if (check_entity_relationship(elgg_get_page_owner_guid(), 'friend', $vars['entity']->guid)) $rel = 'friend'; if (!$banned) @@ -41,7 +41,7 @@ if ($event_id) { } else { // load the event from the database $event = get_entity($event_id); - $user_id = get_loggedin_userid(); + $user_id = elgg_get_logged_in_user_guid(); if ($event && ($event->owner_guid == $user_id)) { $authorised = TRUE; } @@ -57,7 +57,7 @@ if ($authorised) { $info .= $link; } -// echo elgg_view_listing($icon, $info); +// echo elgg_view_image_block($icon, $info); echo elgg_view('search/gallery_listing',array('icon' => $icon, 'info' => $info)); ?> \ No newline at end of file diff --git a/views/default/event_calendar/groupprofile_calendar_deprecated.php b/views/default/event_calendar/groupprofile_calendar_deprecated.php index 081a0eb2d..0d7d5101f 100644 --- a/views/default/event_calendar/groupprofile_calendar_deprecated.php +++ b/views/default/event_calendar/groupprofile_calendar_deprecated.php @@ -30,7 +30,7 @@ if (event_calendar_activated_for_group($page_owner_entity)) { foreach($events as $event) { echo elgg_view("object/event_calendar",array('entity' => $event)); } - echo '
'.elgg_echo('event_calendar:view_calendar').'
'; + echo '
'.elgg_echo('event_calendar:view_calendar').'
'; echo ""; } else if (elgg_get_plugin_setting('group_always_display', 'event_calendar') == 'yes') { diff --git a/views/default/event_calendar/nav.php b/views/default/event_calendar/nav.php index ceedfd485..746a46151 100644 --- a/views/default/event_calendar/nav.php +++ b/views/default/event_calendar/nav.php @@ -17,7 +17,7 @@ $url_start = $vars['url'].'mod/event_calendar/show_events.php?group_guid='.$vars
$url_start,'region'=>$vars['region'])); diff --git a/views/default/plugins/event_calendar/settings.php b/views/default/plugins/event_calendar/settings.php index db6e00913..a58647828 100644 --- a/views/default/plugins/event_calendar/settings.php +++ b/views/default/plugins/event_calendar/settings.php @@ -169,7 +169,7 @@ $body .= '
'; // agenda view is now handled in the listing area -/*$event_calendar_agenda_view = get_plugin_setting('agenda_view', 'event_calendar'); +/*$event_calendar_agenda_view = elgg_get_plugin_setting('agenda_view', 'event_calendar'); if (!$event_calendar_agenda_view) { $event_calendar_agenda_view = 'no'; } -- cgit v1.2.3