Author: dabuum
Description:
The table in Special:Imagelist is sortable by columns defined in
ImageListPager->isFieldSortable which checks via in_array against "static
$sortable". Please make this variable configurable per LocalSettings. E.g. by
applying this patch against includes/SpecialImagelist.php:
- C:/Dokumente und Einstellungen/Benedikt/Desktop/oldImagelist.txt Tue Apr 10
14:35:25 2007
+++ C:/Dokumente und Einstellungen/Benedikt/Desktop/newImagelist.txt Tue Apr 10
14:35:20 2007
@@ -64,12 +64,12 @@
} return $this->mFieldNames; } function isFieldSortable( $field ) {
- static $sortable = array( 'img_timestamp', 'img_name', 'img_size' );
- return in_array( $field, $sortable );
+ global $wgImagelistSortable;
+ return in_array( $field, $wgImagelistSortable );
} function getQueryInfo() { $fields = $this->getFieldNames(); unset( $fields['links'] );
Thanks,
Bene
Version: 1.9.x
Severity: minor
URL: http://en.wikipedia.org/wiki/Special:Imagelist