summaryrefslogtreecommitdiff
path: root/includes/install.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/install.inc')
-rw-r--r--includes/install.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/install.inc b/includes/install.inc
index 5f16c018b..3c51dc123 100644
--- a/includes/install.inc
+++ b/includes/install.inc
@@ -551,7 +551,7 @@ function drupal_verify_profile($install_state) {
// Get a list of modules that exist in Drupal's assorted subdirectories.
$present_modules = array();
- foreach (drupal_system_listing('/\.module$/', 'modules', 'name', 0) as $present_module) {
+ foreach (drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.module$/', 'modules', 'name', 0) as $present_module) {
$present_modules[] = $present_module->name;
}