mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-03 18:29:09 -04:00
Clean out old dirs before packaging.
This commit is contained in:
@@ -283,6 +283,12 @@ class Scaffold_Controller extends Template_Controller {
|
||||
$db->query("DROP TABLE IF EXISTS `$table`");
|
||||
}
|
||||
|
||||
// Clean out data
|
||||
dir::unlink(VARPATH . "uploads");
|
||||
dir::unlink(VARPATH . "albums");
|
||||
dir::unlink(VARPATH . "resizes");
|
||||
dir::unlink(VARPATH . "thumbs");
|
||||
|
||||
module::$module_names = array();
|
||||
module::$modules = array();
|
||||
$db->clear_cache();
|
||||
|
||||
Reference in New Issue
Block a user