Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | |
88 | 88 | // Find last 5 authors. |
89 | 89 | $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 ) ); |
91 | 91 | $users = array(); |
92 | 92 | while ($user = $dbr->fetchRow($res)) { |
93 | 93 | $users[] = $user[0]; |