Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3714
patch.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:36 PM
2014-11-21 21:36:19 (UTC+0)
Size
413 B
Referenced Files
None
Subscribers
None
patch.txt
View Options
@@ -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'] );
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3281
Default Alt Text
patch.txt (413 B)
Attached To
Mode
T11548: [Feature-Request] Make imagelists $sortable global
Attached
Detach File
Event Timeline
Log In to Comment