normal $wgDBport.
* The upload link for missing files can now be set separately from the
navigation link with $wgUploadMissingFileUrl.
+* $wgCategoryPrefixedDefaultSortkey was removed and is now always false. This
+ provides more sensible sorting behavior for categories.
=== New features in 1.17 ===
* (bug 10183) Users can now add personal styles and scripts to all skins via
*/
$wgCategoryPagingLimit = 200;
-/**
- * Should the default category sortkey be the prefixed title?
- * Run maintenance/refreshLinks.php after changing this.
- */
-$wgCategoryPrefixedDefaultSortkey = true;
-
/**
* A version indicator for collations that will be stored in cl_collation for
* all new rows. Used when the collation algorithm changes: a script checks
* @return string
*/
public function getCategorySortkey( $prefix = '' ) {
- global $wgCategoryPrefixedDefaultSortkey;
- if ( $this->getNamespace() == NS_CATEGORY
- || !$wgCategoryPrefixedDefaultSortkey ) {
- $unprefixed = $this->getText();
- } else {
- $unprefixed = $this->getPrefixedText();
- }
+ $unprefixed = $this->getText();
if ( $prefix !== '' ) {
# Separate with a null byte, so the unprefixed part is only used as
# a tiebreaker when two pages have the exact same prefix -- null
if ( $row->cl_collation == 0 ) {
# This is an old-style row, so the sortkey needs to be
# converted.
- if ( $row->cl_sortkey == $title->getCategorySortkey() ) {
+ if ( $row->cl_sortkey == $title->getText()
+ || $row->cl_sortkey == $title->getPrefixedText() ) {
$prefix = '';
} else {
# Custom sortkey, use it as a prefix