From 3c975f4bb8d3975dc73444e47d01dd98e9b2b37a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 8 Aug 2006 21:18:04 +0000 Subject: - Patch #77549 by adrian: install profiles should be in their own directory. --- modules/system/system.module | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/system/system.module b/modules/system/system.module index 5aaf97a63..89d6a7bef 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -954,11 +954,17 @@ function system_default_region($theme) { */ function system_listing($mask, $directory, $key = 'name', $min_depth = 1) { $config = conf_path(); + $profile = variable_get('install_profile', 'default'); $searchdir = array($directory); $files = array(); // Always search sites/all/* as well as the global directories $searchdir[] = 'sites/all'; + + if (file_exists("profiles/$profile/$directory")) { + $searchdir[] = "profiles/$profile/$directory"; + } + if (file_exists("$config/$directory")) { $searchdir[] = "$config/$directory"; } -- cgit v1.2.3