Followup to rr113364: Sometimes

This commit is contained in:
Marcin Cieślak 2012-03-11 22:58:58 +00:00
parent 349dc133f8
commit 9eff49aea5
Notes: Marcin Cieślak 2012-03-11 22:58:58 +00:00

View file

@ -222,6 +222,7 @@ class SpecialNuke extends SpecialPage {
if ( !is_null( $pattern ) && trim( $pattern ) !== '' ) {
$where[] = 'rc_title LIKE ' . $dbr->addQuotes( $pattern );
}
$group = implode( ', ', $what );
$result = $dbr->select( 'recentchanges',
$what,
@ -229,7 +230,7 @@ class SpecialNuke extends SpecialPage {
__METHOD__,
array(
'ORDER BY' => 'rc_timestamp DESC',
'GROUP BY' => 'rc_namespace, rc_timestamp, rc_title',
'GROUP BY' => $group,
'LIMIT' => $limit
)
);