summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-18 16:26:36 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-18 16:26:36 +0000
commit6f4fae0786676721009205e43796e4e4e4fe0f95 (patch)
tree918d61f2d8776f9a25438a320584eabc35b9faa9 /core/helpers
parentb63ea2cdbf995d4648bc3c4a5f4eb51ed8da3a8d (diff)
Added the is_installed to the module helper and change to photo.html to not try to display a comment if it is not installed
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/module.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/helpers/module.php b/core/helpers/module.php
index dbb2e989..8e6ef3ac 100644
--- a/core/helpers/module.php
+++ b/core/helpers/module.php
@@ -44,4 +44,8 @@ class Module_Core {
public static function delete ($module_name) {
ORM::factory("module")->where("name", $module_name)->find()->delete();
}
+
+ public static function is_installed($module_name) {
+ return ORM::factory("module")->where("name", $module_name)->find()->loaded;
+ }
}