r24174 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24173‎ | r24174 | r24175 >
Date:18:00, 16 July 2007
Author:aaron
Status:old
Tags:
Comment:
*Delete only where acr_rejected = 1
Modified paths:
  • /trunk/extensions/ConfirmAccount/ConfirmAccount_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php
@@ -595,7 +595,7 @@
596596 $dbw = wfGetDB( DB_MASTER );
597597 $cutoff = $dbw->timestamp( time() - $wgRejectedAccountMaxAge );
598598 $accountrequests = $dbw->tableName( 'account_requests' );
599 - $sql = "DELETE FROM $accountrequests WHERE acr_registration < '{$cutoff}'";
 599+ $sql = "DELETE FROM $accountrequests WHERE acr_rejected = 1 AND acr_registration < '{$cutoff}'";
600600 $dbw->query( $sql );
601601 }
602602 }

Status & tagging log