mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-22 12:29:11 -04:00
Create a tempnam substitute that safely creates files with a given extension.
This commit is contained in:
@@ -36,8 +36,8 @@ class Quick_Controller extends Controller {
|
||||
}
|
||||
|
||||
if ($degrees) {
|
||||
$tmpfile = tempnam(TMPPATH, "rotate") . "." .
|
||||
pathinfo($item->file_path(), PATHINFO_EXTENSION);
|
||||
$tmpfile = system::tempnam(TMPPATH, "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