diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-03 05:47:00 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-03 05:47:00 +0000 |
commit | 0cfa51b5b70eeeb5e6c070311fbb6f451aef3b05 (patch) | |
tree | 6bfcf38d408300e5d070343ea5007e94b398d8f9 | |
parent | e8f1ff580c6290060d1de8f3e9eceae9028fd1fa (diff) |
Propagate rotation up to the parent album, if we're rotating the album cover.
-rw-r--r-- | core/controllers/quick.php | 8 |
1 files changed, 8 insertions, 0 deletions
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( |