* (bug 8380) Be nicer about blank lines in deleteBatch.php
This commit is contained in:
parent
bd02ae1dff
commit
1e2c1826bd
2 changed files with 3 additions and 2 deletions
|
|
@ -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 ==
|
||||
|
|
|
|||
|
|
@ -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 ) ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue