diff options
-rw-r--r-- | core/helpers/core_installer.php | 10 |
1 files changed, 3 insertions, 7 deletions
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) { |