Propagate rotation up to the parent album, if we're rotating the album cover.

This commit is contained in:
Bharat Mediratta
2009-01-03 05:47:00 +00:00
parent e8f1ff580c
commit 0cfa51b5b7

View File

@@ -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(