diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-05-06 11:48:13 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-05-06 11:48:13 -0700 |
commit | 80dda6f64fd26f373cc138a199652099accceb26 (patch) | |
tree | fef68945a8bb2706362ab686a45078a187fb2835 /modules/gallery/controllers/quick.php | |
parent | 5d09cbff048fc2f457c8b19adb2177a12445890a (diff) | |
parent | 46da011bf69bbc4e45757feda8f0d28e91e7fb6a (diff) |
Merge pull request #52 from chadparry/tempnam
Fixes #1732
Diffstat (limited to 'modules/gallery/controllers/quick.php')
-rw-r--r-- | modules/gallery/controllers/quick.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php index da4768fd..b6576ec0 100644 --- a/modules/gallery/controllers/quick.php +++ b/modules/gallery/controllers/quick.php @@ -36,8 +36,8 @@ class Quick_Controller extends Controller { } if ($degrees) { - $tmpfile = tempnam(TMPPATH, "rotate") . "." . - pathinfo($item->file_path(), PATHINFO_EXTENSION); + $tmpfile = system::temp_filename("rotate", + pathinfo($item->file_path(), PATHINFO_EXTENSION)); gallery_graphics::rotate($item->file_path(), $tmpfile, array("degrees" => $degrees), $item); $item->set_data_file($tmpfile); $item->save(); |