Fix overlooked hard-coded table name (reported in bug 4748)
authorRob Church <robchurch@users.mediawiki.org>
Sun, 29 Jan 2006 17:37:23 +0000 (17:37 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 29 Jan 2006 17:37:23 +0000 (17:37 +0000)
maintenance/purgeOldText.inc

index 6a27550..9e6ee7a 100644 (file)
@@ -37,7 +37,7 @@ function PurgeRedundantText( $delete = false ) {
        # Get the IDs of all text records not in these sets
        echo( "Searching for inactive text records..." );
        $set = implode( ', ', $cur );
-       $res = $dbw->query( "SELECT old_id FROM text WHERE old_id NOT IN ( $set )" );
+       $res = $dbw->query( "SELECT old_id FROM $tbl_text WHERE old_id NOT IN ( $set )" );
        while( $row = $dbw->fetchObject( $res ) ) {
                $old[] = $row->old_id;
        }