summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/quick.php
diff options
context:
space:
mode:
authorChad Parry <github@chad.parry.org>2011-04-30 16:40:55 -0600
committerChad Parry <github@chad.parry.org>2011-04-30 16:40:55 -0600
commit2375a02e2cdbd1ccaf7dc4d3db9d85119972e3a9 (patch)
tree8d6282cacc02af244fa1a6d371ff748f227c4a2b /modules/gallery/controllers/quick.php
parenta8ca9dcf9edd54633c0c78b3af76aa974d38fc64 (diff)
Change the signature of system::tempnam to something more appropriate for Gallery.
Diffstat (limited to 'modules/gallery/controllers/quick.php')
-rw-r--r--modules/gallery/controllers/quick.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/quick.php b/modules/gallery/controllers/quick.php
index ce52cb8d..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 = system::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();