diff options
author | Chad Parry <github@chad.parry.org> | 2011-04-30 16:40:55 -0600 |
---|---|---|
committer | Chad Parry <github@chad.parry.org> | 2011-04-30 17:45:44 -0600 |
commit | 0e844766baf3b3875cbb2d84579626e05e879420 (patch) | |
tree | 9be9474531aa5220243b07f2d33bb5dcd4ced5d6 /modules/gallery/controllers/quick.php | |
parent | 5c9a3b3f39f6ff0d5c84c2cf283d27eaebe2e66e (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.php | 4 |
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(); |