Merge "Remove sorting by user from Special:AbuseFilter/history"

This commit is contained in:
jenkins-bot 2020-10-10 11:58:54 +00:00 committed by Gerrit Code Review
commit f1de9145f5

View file

@ -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';
}
/**