follow-up r60272. replace $_GET with $wgRequest->getText.
[lhc/web/wiklou.git] / maintenance / purgeOldText.inc
index c4732e9..0bd5f2e 100644 (file)
@@ -3,7 +3,8 @@
 /**
  * Support functions for cleaning up redundant text records
  *
- * @addtogroup Maintenance
+ * @file
+ * @ingroup Maintenance
  * @author Rob Church <robchur@gmail.com>
  */
 
@@ -19,7 +20,7 @@ function PurgeRedundantText( $delete = false ) {
        
        # Get "active" text records from the revisions table
        echo( "Searching for active text records in revisions table..." );
-       $res = $dbw->query( "SELECT DISTINCTROW rev_text_id FROM $tbl_rev" );
+       $res = $dbw->query( "SELECT DISTINCT rev_text_id FROM $tbl_rev" );
        while( $row = $dbw->fetchObject( $res ) ) {
                $cur[] = $row->rev_text_id;
        }
@@ -27,7 +28,7 @@ function PurgeRedundantText( $delete = false ) {
        
        # Get "active" text records from the archive table
        echo( "Searching for active text records in archive table..." );
-       $res = $dbw->query( "SELECT DISTINCTROW ar_text_id FROM $tbl_arc" );
+       $res = $dbw->query( "SELECT DISTINCT ar_text_id FROM $tbl_arc" );
        while( $row = $dbw->fetchObject( $res ) ) {
                $cur[] = $row->ar_text_id;
        }
@@ -59,5 +60,3 @@ function PurgeRedundantText( $delete = false ) {
        $dbw->commit();
        
 }
-
-?>