From: Max Semenik Date: Thu, 8 Apr 2010 15:55:59 +0000 (+0000) Subject: checkSyntax: fixed check for exclusions on Windows X-Git-Tag: 1.31.0-rc.0~37215 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=2054cb6307ee3d68d5807709b6f934519cdeb991;p=lhc%2Fweb%2Fwiklou.git checkSyntax: fixed check for exclusions on Windows --- 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;