r110089 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110088‎ | r110089 | r110090 >
Date:22:05, 26 January 2012
Author:demon
Status:ok
Tags:
Comment:
Fix only extension using ss_admins
Modified paths:
  • /trunk/extensions/UserMerge/UserMerge_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UserMerge/UserMerge_body.php
@@ -192,9 +192,8 @@
193193 wfRunHooks( 'DeleteAccount', array( &$objOldUser ) );
194194
195195 $users = $dbw->selectField( 'user', 'COUNT(*)', array() );
196 - $admins = $dbw->selectField( 'user_groups', 'COUNT(*)', array( 'ug_group' => 'sysop' ) );
197196 $dbw->update( 'site_stats',
198 - array( 'ss_users' => $users, 'ss_admins' => $admins ),
 197+ array( 'ss_users' => $users ),
199198 array( 'ss_row_id' => 1 ) );
200199 return true;
201200 }

Status & tagging log