From: Alexandre Emsenhuber Date: Wed, 10 Feb 2010 20:26:07 +0000 (+0000) Subject: Fixed E_STRICT errors about method signatures not matching X-Git-Tag: 1.31.0-rc.0~37833 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=a96b5eaf0f46fef37ba5ae32a4e6d9f8ea27b8a7;p=lhc%2Fweb%2Fwiklou.git Fixed E_STRICT errors about method signatures not matching --- diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php index d4515ffeae..0d3bdb3fbe 100644 --- a/maintenance/rebuildImages.php +++ b/maintenance/rebuildImages.php @@ -104,7 +104,7 @@ class ImageBuilder extends FiveUpgrade { $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 { @@ -120,7 +120,7 @@ class ImageBuilder extends FiveUpgrade { $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 ); @@ -132,7 +132,7 @@ class ImageBuilder extends FiveUpgrade { 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 == '' ) {