Commit b8d02bf0 authored by webchick's avatar webchick

#1012914 by dww: Fix regex in Updater classes.

parent 94315d70
......@@ -39,7 +39,7 @@ public function isInstalled() {
}
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 @@ public function isInstalled() {
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment