$result = $this->dbr->query( $sql, $fname );
while( $row = $this->dbr->fetchObject( $result ) ) {
- $update = call_user_func( $callback, $row );
+ $update = call_user_func( $callback, $row, null );
if( $update ) {
$this->progress( 1 );
} else {
$this->buildTable( 'image', 'img_name', $callback );
}
- function imageCallback( $row ) {
+ function imageCallback( $row, $copy ) {
// Create a File object from the row
// This will also upgrade it
$file = $this->getRepo()->newFileFromRow( $row );
array( &$this, 'oldimageCallback' ) );
}
- function oldimageCallback( $row ) {
+ function oldimageCallback( $row, $copy ) {
// Create a File object from the row
// This will also upgrade it
if ( $row->oi_archive_name == '' ) {