From 88afbeba07eabfb9ccdcd123887c19bf318cdfcc Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 13 May 2009 04:36:18 +0000 Subject: Clean out old dirs before packaging. --- core/controllers/scaffold.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/controllers') 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(); -- cgit v1.2.3