From 992cf22c795100a4f42c17c38cf1aaa2029af279 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 21 Nov 2008 07:06:11 +0000 Subject: Revert module block approach --- core/controllers/welcome.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/controllers') diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 098f3af5..cf8f6693 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -48,11 +48,12 @@ class Welcome_Controller extends Template_Controller { function uninstall($module_name) { if ($module_name == "core") { - // Legacy support for uninstalling the auth module + // Legacy support for uninstalling the auth module and removing the blocks table try { $db = Database::instance(); $db->query("DROP TABLE IF EXISTS `passwords`;"); ORM::factory("module")->where("name", "auth")->find()->delete(); + $db->query("DROP TABLE IF EXISTS `blocks`;"); } catch (Exception $e) { } -- cgit v1.2.3