Index: trunk/phase3/maintenance/rebuildImages.php |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | $result = $this->dbr->query( $sql, $fname ); |
106 | 106 | |
107 | 107 | while( $row = $this->dbr->fetchObject( $result ) ) { |
108 | | - $update = call_user_func( $callback, $row ); |
| 108 | + $update = call_user_func( $callback, $row, null ); |
109 | 109 | if( $update ) { |
110 | 110 | $this->progress( 1 ); |
111 | 111 | } else { |
— | — | @@ -120,7 +120,7 @@ |
121 | 121 | $this->buildTable( 'image', 'img_name', $callback ); |
122 | 122 | } |
123 | 123 | |
124 | | - function imageCallback( $row ) { |
| 124 | + function imageCallback( $row, $copy ) { |
125 | 125 | // Create a File object from the row |
126 | 126 | // This will also upgrade it |
127 | 127 | $file = $this->getRepo()->newFileFromRow( $row ); |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | array( &$this, 'oldimageCallback' ) ); |
134 | 134 | } |
135 | 135 | |
136 | | - function oldimageCallback( $row ) { |
| 136 | + function oldimageCallback( $row, $copy ) { |
137 | 137 | // Create a File object from the row |
138 | 138 | // This will also upgrade it |
139 | 139 | if ( $row->oi_archive_name == '' ) { |