From 2054cb6307ee3d68d5807709b6f934519cdeb991 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Thu, 8 Apr 2010 15:55:59 +0000 Subject: [PATCH] checkSyntax: fixed check for exclusions on Windows --- maintenance/checkSyntax.php | 1 + 1 file changed, 1 insertion(+) diff --git a/maintenance/checkSyntax.php b/maintenance/checkSyntax.php index cf1b26201e..623b45ed84 100644 --- a/maintenance/checkSyntax.php +++ b/maintenance/checkSyntax.php @@ -162,6 +162,7 @@ class CheckSyntax extends Maintenance { * Returns true if $file is of a type we can check */ private function isSuitableFile( $file ) { + $file = str_replace( '\\', '/', $file ); $ext = pathinfo( $file, PATHINFO_EXTENSION ); if ( $ext != 'php' && $ext != 'inc' && $ext != 'php5' ) return false; -- 2.20.1