r61268 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61267‎ | r61268 | r61269 >
Date:20:51, 19 January 2010
Author:aaron
Status:ok
Tags:
Comment:
(bug 22153) 'checkuser-ipeditcount' notice now accounts for time period
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -386,12 +386,12 @@
387387 # If we get some results, it helps to know if the IP in general
388388 # has a lot more edits, e.g. "tip of the iceberg"...
389389 $ipedits = $dbr->estimateRowCount( 'cu_changes', '*',
390 - array( 'cuc_ip_hex' => $ips_hex[$ip] ),
 390+ array( 'cuc_ip_hex' => $ips_hex[$ip], $time_conds ),
391391 __METHOD__ );
392392 # If small enough, get a more accurate count
393393 if( $ipedits <= 1000 ) {
394394 $ipedits = $dbr->selectField( 'cu_changes', 'COUNT(*)',
395 - array( 'cuc_ip_hex' => $ips_hex[$ip] ),
 395+ array( 'cuc_ip_hex' => $ips_hex[$ip], $time_conds ),
396396 __METHOD__ );
397397 }
398398 if( $ipedits > $ips_edits[$ip] ) {

Status & tagging log