Permalink
Browse files

Fix up another place where we were incorrectly referencing the galler…

…y module.
  • Loading branch information...
1 parent 567c911 commit 24dce5a85d97856508951123aed09feb206beb82 @bharat bharat committed May 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/gallery/helpers/module.php
@@ -75,7 +75,7 @@ static function is_active($module_name) {
*/
static function available() {
$modules = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);
- foreach (array_merge(array("gallery/module.info"), glob(MODPATH . "*/module.info")) as $file) {
+ foreach (glob(MODPATH . "*/module.info") as $file) {
$module_name = basename(dirname($file));
$modules->$module_name = new ArrayObject(parse_ini_file($file), ArrayObject::ARRAY_AS_PROPS);
$modules->$module_name->installed = self::is_installed($module_name);

0 comments on commit 24dce5a

Please sign in to comment.