From e5b3b8b9bdd999c1e4c1ac583417340eacb72269 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 20 Mar 2009 21:20:30 +0000 Subject: updated widget for Elgg 1.5 --- views/default/widgets/album_view/view.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'views/default/widgets/album_view/view.php') diff --git a/views/default/widgets/album_view/view.php b/views/default/widgets/album_view/view.php index 347332971..d56e0c3fc 100644 --- a/views/default/widgets/album_view/view.php +++ b/views/default/widgets/album_view/view.php @@ -1,3 +1,4 @@ +
num_display; @@ -9,7 +10,7 @@ $owner_albums = get_entities("object", "album", page_owner(), "", $number, 0, false); if ($owner_albums) { - echo '
'; + echo '
'; foreach($owner_albums as $album){ @@ -40,14 +41,12 @@ } else { - echo '

'.elgg_echo("album:none").'

'; + echo '

' . elgg_echo("album:none") . '

'; - //check if owner has write rights. If so, let him edit the album - $container_guid = get_input('container_guid', $_SESSION['user']->getGUID()); - - if ($owner->username == get_entity($container_guid)->username){ + if (get_loggedin_userid() == page_owner()) { echo '

username.'>'.elgg_echo("album:create").'

'; } } -?> \ No newline at end of file +?> +
\ No newline at end of file -- cgit v1.2.3