mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 14:11:01 -04:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user