summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/module.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-27 23:15:09 -0700
committerBharat Mediratta <bharat@menalto.com>2009-05-27 23:15:09 -0700
commit93053cf83152082ce2fb365ad2ab6034c9edd4ee (patch)
tree2b509460486741547cab2541ca372dbb4b43c02b /modules/gallery/helpers/module.php
parent993eecfee61e502660f490bec5b394640b917bd1 (diff)
parent38708920181f3bb7787ccd11128e5f6f0b74cbf7 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/module.php')
-rw-r--r--modules/gallery/helpers/module.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/module.php b/modules/gallery/helpers/module.php
index a6cc87ac..ad46b2ff 100644
--- a/modules/gallery/helpers/module.php
+++ b/modules/gallery/helpers/module.php
@@ -75,7 +75,7 @@ class module_Core {
*/
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);