r62261 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62260‎ | r62261 | r62262 >
Date:20:26, 10 February 2010
Author:ialex
Status:ok
Tags:
Comment:
Fixed E_STRICT errors about method signatures not matching
Modified paths:
  • /trunk/phase3/maintenance/rebuildImages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/rebuildImages.php
@@ -104,7 +104,7 @@
105105 $result = $this->dbr->query( $sql, $fname );
106106
107107 while( $row = $this->dbr->fetchObject( $result ) ) {
108 - $update = call_user_func( $callback, $row );
 108+ $update = call_user_func( $callback, $row, null );
109109 if( $update ) {
110110 $this->progress( 1 );
111111 } else {
@@ -120,7 +120,7 @@
121121 $this->buildTable( 'image', 'img_name', $callback );
122122 }
123123
124 - function imageCallback( $row ) {
 124+ function imageCallback( $row, $copy ) {
125125 // Create a File object from the row
126126 // This will also upgrade it
127127 $file = $this->getRepo()->newFileFromRow( $row );
@@ -132,7 +132,7 @@
133133 array( &$this, 'oldimageCallback' ) );
134134 }
135135
136 - function oldimageCallback( $row ) {
 136+ function oldimageCallback( $row, $copy ) {
137137 // Create a File object from the row
138138 // This will also upgrade it
139139 if ( $row->oi_archive_name == '' ) {

Status & tagging log