add new option $wgRestrictDisplayTitle
[lhc/web/wiklou.git] / maintenance / cleanupTable.inc
index cc551bc..26b0a0e 100644 (file)
@@ -2,6 +2,9 @@
 
 require_once( 'FiveUpgrade.inc' );
 
+/**
+ * @ingroup Maintenance
+ */
 abstract class TableCleanup extends FiveUpgrade {
        function __construct( $table, $dryrun = false ) {
                parent::__construct();
@@ -69,7 +72,7 @@ abstract class TableCleanup extends FiveUpgrade {
                $result = $this->dbr->query( $sql, $fname );
 
                while( $row = $this->dbr->fetchObject( $result ) ) {
-                       $updated = call_user_func( $callback, $row );
+                       call_user_func( $callback, $row );
                }
                $this->log( "Finished $table... $this->updated of $this->processed rows updated" );
                $this->dbr->freeResult( $result );
@@ -82,5 +85,3 @@ abstract class TableCleanup extends FiveUpgrade {
        abstract function processPage( $row );
        
 }
-
-?>