mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-30 02:46:19 -04:00
Forgot these when i created the make_album_cover method
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user