diff options
Diffstat (limited to 'views/default/tidypics')
-rw-r--r-- | views/default/tidypics/albums.php | 5 | ||||
-rw-r--r-- | views/default/tidypics/forms/edit.php | 2 | ||||
-rw-r--r-- | views/default/tidypics/forms/edit_multi.php | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/views/default/tidypics/albums.php b/views/default/tidypics/albums.php index a4b2ee906..7e0cd2d6c 100644 --- a/views/default/tidypics/albums.php +++ b/views/default/tidypics/albums.php @@ -14,8 +14,9 @@ echo '<div id="tidypics_album_widget_container">'; if ($owner_albums) { foreach ($owner_albums as $album) { - if ($album->cover) { - $album_cover = '<img src="'.$vars['url'].'mod/tidypics/thumbnail.php?file_guid='.$album->cover.'&size=small" class="tidypics_album_cover" alt="' . $album->title . '"/>'; + $album_cover_guid = $album->getCoverImageGuid(); + if ($album_cover_guid) { + $album_cover = '<img src="'.$vars['url'].'mod/tidypics/thumbnail.php?file_guid='.$album_cover_guid.'&size=small" class="tidypics_album_cover" alt="' . $album->title . '"/>'; } else { $album_cover = '<img src="'.$vars['url'].'mod/tidypics/graphics/empty_album.png" class="tidypics_album_cover" alt="' . $album->title . '">'; } diff --git a/views/default/tidypics/forms/edit.php b/views/default/tidypics/forms/edit.php index 74d8e85ec..8e2bd9bcc 100644 --- a/views/default/tidypics/forms/edit.php +++ b/views/default/tidypics/forms/edit.php @@ -75,7 +75,7 @@ $container_guid = page_owner(); // determine if it is already the cover $img_guid = $vars['entity']->guid; $album = get_entity($container_guid); - $cover_guid = $album->cover; + $cover_guid = $album->getCoverImageGuid(); if ($cover_guid != $img_guid) { diff --git a/views/default/tidypics/forms/edit_multi.php b/views/default/tidypics/forms/edit_multi.php index c16c8eea9..8c3e40242 100644 --- a/views/default/tidypics/forms/edit_multi.php +++ b/views/default/tidypics/forms/edit_multi.php @@ -11,7 +11,7 @@ // make sure one of the images becomes the cover if there isn't one already $album_entity = get_entity($vars['album_guid']); - if (!$album_entity->cover) { + if (!$album_entity->getCoverImageGuid()) { $no_cover = true; } |