From 0cfa51b5b70eeeb5e6c070311fbb6f451aef3b05 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 3 Jan 2009 05:47:00 +0000 Subject: Propagate rotation up to the parent album, if we're rotating the album cover. --- core/controllers/quick.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/controllers/quick.php') diff --git a/core/controllers/quick.php b/core/controllers/quick.php index 6a9ed0f8..7267283c 100644 --- a/core/controllers/quick.php +++ b/core/controllers/quick.php @@ -58,6 +58,14 @@ class Quick_Controller extends Controller { $item->save(); graphics::generate($item); + + $parent = $item->parent(); + if ($parent->album_cover_item_id == $item->id) { + copy($item->thumb_path(), $parent->thumb_path()); + $parent->thumb_width = $item->thumb_width; + $parent->thumb_height = $item->thumb_height; + $parent->save(); + } } print json_encode( -- cgit v1.2.3