summaryrefslogtreecommitdiff
path: root/core/helpers/core_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-27 09:45:26 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-27 09:45:26 +0000
commitc95c17b13311c23998f494ce982da7c633a9285d (patch)
tree3c8172e9837ddb78dbba33c962d40ef384ff6a4f /core/helpers/core_installer.php
parent92ca1ba9abb37e49df83e5c313d00b16c19efc66 (diff)
Centralize logging around installing/uninstalling modules.
Diffstat (limited to 'core/helpers/core_installer.php')
-rw-r--r--core/helpers/core_installer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php
index d4f9113f..1066b08c 100644
--- a/core/helpers/core_installer.php
+++ b/core/helpers/core_installer.php
@@ -66,8 +66,6 @@ class core_installer {
@mkdir(VARPATH . $dir);
}
- module::set_version("core", 1);
-
$root = ORM::factory("item");
$root->type = 'album';
$root->title = "Gallery";
@@ -78,6 +76,8 @@ class core_installer {
$root->level = 1;
$root->set_thumbnail(DOCROOT . "core/tests/test.jpg", 200, 150)
->save();
+
+ module::set_version("core", 1);
}
}