diff options
author | Sem <sembrestels@riseup.net> | 2013-09-05 21:10:06 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-09-05 21:10:06 +0200 |
commit | f657a9ebb297ecae181714bb4e05b607dbe5e5a5 (patch) | |
tree | dc585c4ffb5ec3735a913c0daef5d4b5f3f7e1b0 /views/default/event_calendar/entities/gallery_item.php | |
parent | da191e2432b0853bd33515fb2bc33a0fe50952f9 (diff) | |
download | elgg-f657a9ebb297ecae181714bb4e05b607dbe5e5a5.tar.gz elgg-f657a9ebb297ecae181714bb4e05b607dbe5e5a5.tar.bz2 |
Removed deprecated function uses.
Diffstat (limited to 'views/default/event_calendar/entities/gallery_item.php')
-rw-r--r-- | views/default/event_calendar/entities/gallery_item.php | 8 |
1 files changed, 4 insertions, 4 deletions
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 |