Get rid of PHP4-style constructors
[lhc/web/wiklou.git] / maintenance / rebuildImages.php
index 4084fd1..1fbd186 100644 (file)
@@ -27,7 +27,7 @@
  *
  * @file
  * @author Brion Vibber <brion at pobox.com>
- * @ingrouo maintenance
+ * @ingroup maintenance
  */
 
 $options = array( 'missing', 'dry-run' );
@@ -36,7 +36,7 @@ require_once( dirname( __FILE__ ) . '/commandLine.inc' );
 require_once( 'FiveUpgrade.inc' );
 
 class ImageBuilder extends FiveUpgrade {
-       function ImageBuilder( $dryrun = false ) {
+       function __construct( $dryrun = false ) {
                parent::FiveUpgrade();
 
                $this->maxLag = 10; # if slaves are lagged more than 10 secs, wait
@@ -112,7 +112,6 @@ class ImageBuilder extends FiveUpgrade {
                        }
                }
                $this->log( "Finished $table... $this->updated of $this->processed rows updated" );
-               $this->dbr->freeResult( $result );
        }
 
        function buildImage() {
@@ -172,8 +171,6 @@ class ImageBuilder extends FiveUpgrade {
        }
 
        function addMissingImage( $filename, $fullpath ) {
-               $fname = 'ImageBuilder::addMissingImage';
-
                $timestamp = $this->dbw->timestamp( filemtime( $fullpath ) );
 
                global $wgContLang;