aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/widgets/album_view/view.php13
1 files changed, 6 insertions, 7 deletions
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 @@
+<div class="contentWrapper">
<?php
//the number of files to display
$number = (int) $vars['entity']->num_display;
@@ -9,7 +10,7 @@
$owner_albums = get_entities("object", "album", page_owner(), "", $number, 0, false);
if ($owner_albums) {
- echo '<div id="album_widget_container">';
+ echo '<div id="album_widget_container">';
foreach($owner_albums as $album){
@@ -40,14 +41,12 @@
} else {
- echo '<p class="pages_add_title">'.elgg_echo("album:none").'</p>';
+ echo '<p class="pages_add_title">' . elgg_echo("album:none") . '</p>';
- //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 '<p class="pages_add"><a class="pages add" href='.$CONFIG->url .'pg/photos/new/'.$owner->username.'>'.elgg_echo("album:create").'</a></p>';
}
}
-?> \ No newline at end of file
+?>
+</div> \ No newline at end of file