summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-13 04:36:18 +0000
committerBharat Mediratta <bharat@menalto.com>2009-05-13 04:36:18 +0000
commit88afbeba07eabfb9ccdcd123887c19bf318cdfcc (patch)
tree793e15a75f15cd817a9fdf1f3d406ff7052abe31
parente41b1795bdda9a6db72bec01891f400b87295175 (diff)
Clean out old dirs before packaging.
-rw-r--r--core/controllers/scaffold.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/controllers/scaffold.php b/core/controllers/scaffold.php
index ef885222..cdc6c1d7 100644
--- a/core/controllers/scaffold.php
+++ b/core/controllers/scaffold.php
@@ -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();