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/movie.php | 5 +---- core/helpers/photo.php | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'core/helpers') diff --git a/core/helpers/movie.php b/core/helpers/movie.php index 7ec4c2e0..6d4279c8 100644 --- a/core/helpers/movie.php +++ b/core/helpers/movie.php @@ -94,10 +94,7 @@ class movie_Core { // If the parent has no cover item, make this it. if ($parent->album_cover_item_id == null) { - $parent->album_cover_item_id = $movie->id; - - $parent->save(); - graphics::generate($parent); + $movie->make_album_cover(); } return $movie; 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