summaryrefslogtreecommitdiff
path: root/core/helpers/module.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/module.php
parent92ca1ba9abb37e49df83e5c313d00b16c19efc66 (diff)
Centralize logging around installing/uninstalling modules.
Diffstat (limited to 'core/helpers/module.php')
-rw-r--r--core/helpers/module.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/helpers/module.php b/core/helpers/module.php
index 2fed23bf..7d6d7f64 100644
--- a/core/helpers/module.php
+++ b/core/helpers/module.php
@@ -35,6 +35,7 @@ class module_Core {
}
$module->version = 1;
$module->save();
+ Kohana::log("debug", "$module_name: version is now $version");
}
public static function get($module_name) {
@@ -43,8 +44,9 @@ class module_Core {
public static function delete ($module_name) {
ORM::factory("module")->where("name", $module_name)->find()->delete();
+ Kohana::log("debug", "$module_name: module deleted");
}
-
+
public static function is_installed($module_name) {
return ORM::factory("module")->where("name", $module_name)->find()->loaded;
}