r81217 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81216‎ | r81217 | r81218 >
Date:22:13, 30 January 2011
Author:reedy
Status:deferred
Tags:
Comment:
Couple of minor code tweaks
Modified paths:
  • /trunk/tools/incubator-transfer/incubator-transfer.php (modified) (history)

Diff [purge]

Index: trunk/tools/incubator-transfer/incubator-transfer.php
@@ -33,7 +33,7 @@
3434 $dumper->pages = array( $title->getPrefixedDBkey() );
3535
3636 # Add the rest
37 -while ( $row = $dbr->fetchObject( $res ) ) {
 37+foreach ( $res as $row ) {
3838 $title = Title::makeTitle( $row->page_namespace, $row->page_title );
3939 $dumper->pages[] = $title->getPrefixedDBkey();
4040 }
@@ -47,5 +47,3 @@
4848
4949 # Import it into the destination wiki
5050 passthru( "php -n " . wfEscapeShellArg( "$scriptDir/_import.php", $destDB, $prefix ) );
51 -
52 -?>

Status & tagging log