summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-16 05:04:42 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-16 05:04:42 +0000
commit83363172b1d42b0d5c27d555a497f49fcad34b11 (patch)
tree066cfa25c777dd875ce3d40e5adda2c9c6e48af2
parent327398458219c42bc8b060490b4ff1eb18631f3b (diff)
Don't use model_cache for get_version and set_version; that breaks the installer.
-rw-r--r--core/helpers/module.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/helpers/module.php b/core/helpers/module.php
index fba0845e..02851528 100644
--- a/core/helpers/module.php
+++ b/core/helpers/module.php
@@ -28,11 +28,11 @@ class module_Core {
private static $modules = array();
public static function get_version($module_name) {
- return model_cache::get("module", $module_name, "name")->version;
+ return ORM::factory("module")->where("name", $module_name)->find()->version;
}
public static function set_version($module_name, $version) {
- $module = model_cache::get("module", $module_name, "name");
+ $module = ORM::factory("module")->where("name", $module_name)->find();
if (!$module->loaded) {
$module->name = $module_name;
}