Fix search-and-replace error
authorMark A. Hershberger <mah@users.mediawiki.org>
Thu, 25 Feb 2010 09:15:19 +0000 (09:15 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Thu, 25 Feb 2010 09:15:19 +0000 (09:15 +0000)
maintenance/deleteArchivedRevisions.inc

index 36e05fe..94f2d47 100644 (file)
@@ -32,7 +32,7 @@ class DeleteArchivedRevisionsImplementation {
 
                # Delete as appropriate
                $output->handleOutput( "Deleting archived revisions... " );
-               $dbw->query( "TRUNCATE TABLE $tbl_arch" );
+               $dbw->query( "DELETE FROM $tbl_arch" );
 
                $count = $dbw->affectedRows();
                $deletedRows = $count != 0;
@@ -43,7 +43,7 @@ class DeleteArchivedRevisionsImplementation {
                # Purge redundant text records
                $dbw->commit();
                if( $deletedRows ) {
-                       $output->purgeRedundantText( true );
+                       $this->purgeRedundantText( true );
                }
        }
 }
\ No newline at end of file