From f1f08168b325605a489b5f21cfdfff96312d55f8 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 23 Oct 2010 15:01:00 +0000 Subject: moved cover code into album class --- views/rss/object/album.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'views/rss/object/album.php') diff --git a/views/rss/object/album.php b/views/rss/object/album.php index 34cf58395..8a8f97cc2 100644 --- a/views/rss/object/album.php +++ b/views/rss/object/album.php @@ -22,8 +22,8 @@ if (get_context() == "search" && get_input('search_viewtype') == "gallery") { // use fullsize image $base_url_fullsize = $vars['url'] . 'pg/photos/download/'; - // insert cover image if it exists image - if ($album->cover) { + $album_cover_guid = $album->getCoverImageGuid(); + if ($album_cover_guid) { // Set title $vars['title'] = $album->title; if (empty($vars['title'])) { @@ -33,7 +33,7 @@ if (get_context() == "search" && get_input('search_viewtype') == "gallery") { } else { $title = $vars['config']->sitename . ": " . $vars['title']; } - $album_cover_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb'; + $album_cover_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=' . $album_cover_guid . '&size=thumb'; ?> <![CDATA[<?php echo $title; ?>]]> -- cgit v1.2.3