From 83363172b1d42b0d5c27d555a497f49fcad34b11 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 16 Dec 2008 05:04:42 +0000 Subject: Don't use model_cache for get_version and set_version; that breaks the installer. --- core/helpers/module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers/module.php') 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; } -- cgit v1.2.3