* (bug 8380) Be nicer about blank lines in deleteBatch.php
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 27 Dec 2006 06:10:31 +0000 (06:10 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 27 Dec 2006 06:10:31 +0000 (06:10 +0000)
RELEASE-NOTES
maintenance/deleteBatch.php

index d1c6177..6ae3e2a 100644 (file)
@@ -419,6 +419,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Make variant table caching a little more robust, using main language code
   in cache key. Probably this is still a bit wonky, though. Was breaking
   parser tests when Chinese tables were getting loaded into Serbian code.
+* (bug 8380) Be nicer about blank lines in deleteBatch.php
 
 
 == Languages updated ==
index 5c5e321..14da6d8 100644 (file)
@@ -49,8 +49,8 @@ $dbw =& wfGetDB( DB_MASTER );
 
 for ( $linenum = 1; !feof( $file ); $linenum++ ) {
        $line = trim( fgets( $file ) );
-       if ( $line === false ) {
-               break;
+       if ( $line == '' ) {
+               continue;
        }
        $page = Title::newFromText( $line );
        if ( is_null( $page ) ) {