From 71cac8bf151eb6ed9ae9a4a33b9acc4e882f4164 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 1 May 2009 23:32:35 +0000 Subject: Forgot these when i created the make_album_cover method --- core/helpers/photo.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/helpers/photo.php') diff --git a/core/helpers/photo.php b/core/helpers/photo.php index 4f75ca0d..199633af 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -98,9 +98,7 @@ class photo_Core { // If the parent has no cover item, make this it. if ($parent->album_cover_item_id == null) { - $parent->album_cover_item_id = $photo->id; - $parent->save(); - graphics::generate($parent); + $photo->make_album_cover(); } return $photo; -- cgit v1.2.3