r46430 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46429‎ | r46430 | r46431 >
Date:06:29, 28 January 2009
Author:werdna
Status:ok
Tags:
Comment:
Fix RECENT_CONTRIBUTORS query -- apparently options need to be uppercased.
Modified paths:
  • /trunk/extensions/AbuseFilter/AbuseFilter.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php
@@ -86,7 +86,7 @@
8787
8888 // Find last 5 authors.
8989 $dbr = wfGetDB( DB_SLAVE );
90 - $res = $dbr->select( 'revision', 'distinct rev_user_text', array('rev_page' => $title->getArticleId() ), __METHOD__, array( 'order by' => 'rev_timestamp desc', 'limit' => 10 ) );
 90+ $res = $dbr->select( 'revision', 'distinct rev_user_text', array('rev_page' => $title->getArticleId() ), __METHOD__, array( 'ORDER BY' => 'rev_timestamp DESC', 'LIMIT' => 10 ) );
9191 $users = array();
9292 while ($user = $dbr->fetchRow($res)) {
9393 $users[] = $user[0];

Status & tagging log