Change the signature of system::tempnam to something more appropriate for Gallery.

This commit is contained in:
Chad Parry
2011-04-30 16:40:55 -06:00
parent a8ca9dcf9e
commit 2375a02e2c
3 changed files with 13 additions and 9 deletions

View File

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