http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88757
Revision: 88757
Author: brion
Date: 2011-05-24 21:54:49 +0000 (Tue, 24 May 2011)
Log Message:
-----------
Fix regression from r88678 refactoring: 'count' parameter got dropped from the
query, lead to PHP notice spew and missing edit counts from the output
Modified Paths:
--------------
trunk/extensions/CheckUser/CheckUser_body.php
Modified: trunk/extensions/CheckUser/CheckUser_body.php
===================================================================
--- trunk/extensions/CheckUser/CheckUser_body.php 2011-05-24 21:34:27 UTC
(rev 88756)
+++ trunk/extensions/CheckUser/CheckUser_body.php 2011-05-24 21:54:49 UTC
(rev 88757)
@@ -423,7 +423,13 @@
$ret = $dbr->select(
'cu_changes',
- array( 'cuc_ip', 'cuc_ip_hex', 'MIN(cuc_timestamp) AS
first', 'MAX(cuc_timestamp) AS last' ),
+ array(
+ 'cuc_ip',
+ 'cuc_ip_hex',
+ 'COUNT(*) AS count',
+ 'MIN(cuc_timestamp) AS first',
+ 'MAX(cuc_timestamp) AS last',
+ ),
array( 'cuc_user' => $user_id, $time_conds ),
__METHOD__,
array(
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs