diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2011-01-04 03:06:24 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2011-01-04 03:06:24 +0000 |
commit | b8d02bf0e770a9f429faf4b1dcd84bc44693cfde (patch) | |
tree | c70b269879b57f35c3971a74614b8eb4adbbbf50 /modules | |
parent | 94315d700148d8f79a9e20323bb08f0e417416f0 (diff) | |
download | brdo-b8d02bf0e770a9f429faf4b1dcd84bc44693cfde.tar.gz brdo-b8d02bf0e770a9f429faf4b1dcd84bc44693cfde.tar.bz2 |
#1012914 by dww: Fix regex in Updater classes.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.updater.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.updater.inc b/modules/system/system.updater.inc index c731c1588..92a1529af 100644 --- a/modules/system/system.updater.inc +++ b/modules/system/system.updater.inc @@ -39,7 +39,7 @@ class ModuleUpdater extends Updater implements DrupalUpdaterInterface { } public static function canUpdateDirectory($directory) { - if (file_scan_directory($directory, '/.*\.module/')) { + if (file_scan_directory($directory, '/.*\.module$/')) { return TRUE; } return FALSE; @@ -121,7 +121,7 @@ class ThemeUpdater extends Updater implements DrupalUpdaterInterface { static function canUpdateDirectory($directory) { // This is a lousy test, but don't know how else to confirm it is a theme. - if (file_scan_directory($directory, '/.*\.module/')) { + if (file_scan_directory($directory, '/.*\.module$/')) { return FALSE; } return TRUE; |