From 1ab5a769241653dd6036202df58b2d8455ef1e82 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 17 Mar 2009 18:17:55 +0000 Subject: Treat calls to install() with TEST_MODE set to be initial installs. At least for now. --- core/helpers/core_installer.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'core/helpers') diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php index 83d99867..1de99224 100644 --- a/core/helpers/core_installer.php +++ b/core/helpers/core_installer.php @@ -20,14 +20,10 @@ class core_installer { static function install() { $db = Database::instance(); - $version = 0; - try { + if (TEST_MODE) { + $version = 0; + } else { $version = module::get_version("core"); - } catch (Exception $e) { - if ($e->getCode() != E_DATABASE_ERROR) { - Kohana::log("error", $e); - throw $e; - } } if ($version == 0) { -- cgit v1.2.3