r64752 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64751‎ | r64752 | r64753 >
Date:15:55, 8 April 2010
Author:maxsem
Status:ok
Tags:
Comment:
checkSyntax: fixed check for exclusions on Windows
Modified paths:
  • /trunk/phase3/maintenance/checkSyntax.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/checkSyntax.php
@@ -162,6 +162,7 @@
163163 * Returns true if $file is of a type we can check
164164 */
165165 private function isSuitableFile( $file ) {
 166+ $file = str_replace( '\\', '/', $file );
166167 $ext = pathinfo( $file, PATHINFO_EXTENSION );
167168 if ( $ext != 'php' && $ext != 'inc' && $ext != 'php5' )
168169 return false;

Status & tagging log