Index: trunk/tools/incubator-transfer/incubator-transfer.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | $dumper->pages = array( $title->getPrefixedDBkey() ); |
35 | 35 | |
36 | 36 | # Add the rest |
37 | | -while ( $row = $dbr->fetchObject( $res ) ) { |
| 37 | +foreach ( $res as $row ) { |
38 | 38 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
39 | 39 | $dumper->pages[] = $title->getPrefixedDBkey(); |
40 | 40 | } |
— | — | @@ -47,5 +47,3 @@ |
48 | 48 | |
49 | 49 | # Import it into the destination wiki |
50 | 50 | passthru( "php -n " . wfEscapeShellArg( "$scriptDir/_import.php", $destDB, $prefix ) ); |
51 | | - |
52 | | -?> |