aboutsummaryrefslogtreecommitdiff
path: root/views/rss/object
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-10-23 15:01:00 +0000
committerCash Costello <cash.costello@gmail.com>2010-10-23 15:01:00 +0000
commitf1f08168b325605a489b5f21cfdfff96312d55f8 (patch)
tree15d8e30d9b645c3fe229cb9a336e7a7708e46070 /views/rss/object
parentbff17c5857d0365038e6783c3c00b53204f4a10e (diff)
downloadelgg-f1f08168b325605a489b5f21cfdfff96312d55f8.tar.gz
elgg-f1f08168b325605a489b5f21cfdfff96312d55f8.tar.bz2
moved cover code into album class
Diffstat (limited to 'views/rss/object')
-rw-r--r--views/rss/object/album.php6
1 files changed, 3 insertions, 3 deletions
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 . '&amp;size=thumb';
+ $album_cover_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=' . $album_cover_guid . '&amp;size=thumb';
?> <image>
<url><?php echo $album_cover_url; ?></url>
<title><![CDATA[<?php echo $title; ?>]]></title>