r92820 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92819‎ | r92820 | r92821 >
Date:23:01, 21 July 2011
Author:aaron
Status:ok
Tags:
Comment:
Clean up garbage from $dbList array
Modified paths:
  • /trunk/tools/mwmultiversion/multiversion/populateWikiversionCDB.php (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/multiversion/populateWikiversionCDB.php
@@ -31,6 +31,7 @@
3232
3333 $path = '/home/wikipedia/common/all.dblist';
3434 $dbList = explode( "\n", file_get_contents( $path ) );
 35+ $dbList = array_filter( $dbList ); // remove whitespace entry
3536 if ( !count( $dbList ) ) {
3637 die( "Unable to read all.dblist." );
3738 }

Status & tagging log