mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-30 10:55:50 -04:00
#2006 - Add system::mark_file_for_delete API to delete files at shutdown.
- added system::mark_file_for_delete to be called to mark a file - added system::delete_marked_files to be called at shutdown to delete the list - amended system::temp_filename to, by default, add the temp name to the list - updated a few other places in code where this should be used
This commit is contained in:
@@ -41,7 +41,6 @@ class Quick_Controller extends Controller {
|
||||
gallery_graphics::rotate($item->file_path(), $tmpfile, array("degrees" => $degrees), $item);
|
||||
$item->set_data_file($tmpfile);
|
||||
$item->save();
|
||||
unlink($tmpfile);
|
||||
}
|
||||
|
||||
if (Input::instance()->get("page_type") == "collection") {
|
||||
|
||||
Reference in New Issue
Block a user