summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index a8a9a2466..299af56b8 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -3426,9 +3426,6 @@ function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1)
$searchdir = array($directory);
$files = array();
- // Always search sites/all/* as well as the global directories
- $searchdir[] = 'sites/all/' . $directory;
-
// The 'profiles' directory contains pristine collections of modules and
// themes as organized by a distribution. It is pristine in the same way
// that /modules is pristine for core; users should avoid changing anything
@@ -3437,6 +3434,9 @@ function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1)
$searchdir[] = "profiles/$profile/$directory";
}
+ // Always search sites/all/* as well as the global directories
+ $searchdir[] = 'sites/all/' . $directory;
+
if (file_exists("$config/$directory")) {
$searchdir[] = "$config/$directory";
}