diff options
-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; |