Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…y module.
  • Loading branch information...
commit 24dce5a85d97856508951123aed09feb206beb82 1 parent 567c911
@bharat bharat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/gallery/helpers/module.php
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.