mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-17 15:29:55 -04:00
Change the signature of system::tempnam to something more appropriate for Gallery.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user