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

This commit is contained in:
Tim Almdal
2008-11-18 16:26:36 +00:00
parent b63ea2cdbf
commit 6f4fae0786
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -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;
}
}