aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/forms
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/default/tidypics/forms
parentbff17c5857d0365038e6783c3c00b53204f4a10e (diff)
downloadelgg-f1f08168b325605a489b5f21cfdfff96312d55f8.tar.gz
elgg-f1f08168b325605a489b5f21cfdfff96312d55f8.tar.bz2
moved cover code into album class
Diffstat (limited to 'views/default/tidypics/forms')
-rw-r--r--views/default/tidypics/forms/edit.php2
-rw-r--r--views/default/tidypics/forms/edit_multi.php2
2 files changed, 2 insertions, 2 deletions
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;
}