diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-09-17 17:48:20 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-09-17 17:48:20 -0700 |
commit | 38be33ef35cd5e67bf37aa0101d1948b6dc27ed0 (patch) | |
tree | 875c02a2bf9d311546060c89baaf74098de96937 /modules/gallery/controllers/quick.php | |
parent | 207d848989880edbbbbc852a366bf3bbaf505d2a (diff) | |
parent | 3e1743b21fd35b9d6d540e827292f1f4f006b531 (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/controllers/quick.php')
-rw-r--r-- | modules/gallery/controllers/quick.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php index c34209da..3db4f5df 100644 --- a/modules/gallery/controllers/quick.php +++ b/modules/gallery/controllers/quick.php @@ -36,7 +36,8 @@ class Quick_Controller extends Controller { } if ($degrees) { - $tmpfile = tempnam(TMPPATH, "rotate"); + $tmpfile = tempnam(TMPPATH, "rotate") . "." . + pathinfo($item->file_path(), PATHINFO_EXTENSION); gallery_graphics::rotate($item->file_path(), $tmpfile, array("degrees" => $degrees)); $item->set_data_file($tmpfile); $item->save(); |