From 6f4fae0786676721009205e43796e4e4e4fe0f95 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 18 Nov 2008 16:26:36 +0000 Subject: 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 --- core/helpers/module.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/helpers/module.php') 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; + } } -- cgit v1.2.3