mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-28 07:50:24 +00:00
Merge "Remove sorting by user from Special:AbuseFilter/history"
This commit is contained in:
commit
f1de9145f5
|
@ -201,13 +201,6 @@ class AbuseFilterHistoryPager extends TablePager {
|
|||
return $info;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getIndexField() {
|
||||
return 'afh_timestamp';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
@ -220,8 +213,7 @@ class AbuseFilterHistoryPager extends TablePager {
|
|||
* @return bool
|
||||
*/
|
||||
public function isFieldSortable( $name ) {
|
||||
$sortable_fields = [ 'afh_timestamp', 'afh_user_text' ];
|
||||
return in_array( $name, $sortable_fields );
|
||||
return $name === 'afh_timestamp';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue