diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-05-01 23:32:35 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-05-01 23:32:35 +0000 |
commit | 71cac8bf151eb6ed9ae9a4a33b9acc4e882f4164 (patch) | |
tree | 2ac86f1b2207067e7d7b2a917b02c096f6233340 | |
parent | 590eceaf93a8cd347484fdcb2dd4d5f1d9fe7adf (diff) |
Forgot these when i created the make_album_cover method
-rw-r--r-- | core/helpers/movie.php | 5 | ||||
-rw-r--r-- | core/helpers/photo.php | 4 |
2 files changed, 2 insertions, 7 deletions
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; |