diff options
Diffstat (limited to 'views/default/river/object/album')
-rw-r--r-- | views/default/river/object/album/create.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/views/default/river/object/album/create.php b/views/default/river/object/album/create.php index ef50f9988..47d20f3ae 100644 --- a/views/default/river/object/album/create.php +++ b/views/default/river/object/album/create.php @@ -20,8 +20,9 @@ if ($group_album) { $album_river_view = get_plugin_setting('album_river_view', 'tidypics'); if ($album_river_view == "cover") { - if ($album->cover) { - $string .= "<div class=\"river_content\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/>' . "</div>"; + $album_cover_guid = $album->getCoverImageGuid(); + if ($album_cover_guid) { + $string .= "<div class=\"river_content\"> <img src=\"" . $CONFIG->wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album_cover_guid . '&size=thumb" class="tidypics_album_cover" alt="thumbnail"/>' . "</div>"; } } else { |