summaryrefslogtreecommitdiff
path: root/core/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-21 07:06:11 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-21 07:06:11 +0000
commit992cf22c795100a4f42c17c38cf1aaa2029af279 (patch)
treeb599693080c029b26d77e1ea7b92cd9be9e62987 /core/controllers
parente60ddd0bd8e3337cf569eb66d36f2bd1021e948e (diff)
Revert module block approach
Diffstat (limited to 'core/controllers')
-rw-r--r--core/controllers/welcome.php3
1 files changed, 2 insertions, 1 deletions
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) {
}