summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-17 18:17:55 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-17 18:17:55 +0000
commit1ab5a769241653dd6036202df58b2d8455ef1e82 (patch)
treec77eb4fd12979f3fc6c38b1c5b85ba03895998b0
parent8dd24edf73fc6e9cd76138d9bd5cd5bd7d79feab (diff)
Treat calls to install() with TEST_MODE set to be initial installs. At least for now.
-rw-r--r--core/helpers/core_installer.php10
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) {