From: Kunal Mehta Date: Wed, 6 Aug 2014 14:54:41 +0000 (+0100) Subject: Remove $wgSortSpecialPages X-Git-Tag: 1.31.0-rc.0~14575 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=0a97b26c114589800796b138d9a89488b49f27bc;p=lhc%2Fweb%2Fwiklou.git Remove $wgSortSpecialPages This is a silly option, and there's no reason you wouldn't want them sorted. Change-Id: Iec1598fce2278d2d8d7b89a75f888e3de9801d17 --- diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index ec4bc0fa0c..47757860dc 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -45,6 +45,8 @@ production. * The UserCryptPassword and UserComparePassword hooks are no longer called. Any extensions using them must be updated to use the Password Hashing API. * $wgCompiledFiles has been removed. +* $wgSortSpecialPages was removed, the listing on Special:SpecialPages is + now always sorted. === New features in 1.24 === * Added a new hook, "WhatLinksHereProps", to allow extensions to annotate diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index cf6a95d0f7..2fc2a9a383 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -6672,11 +6672,6 @@ $wgDisableQueryPageUpdate = false; */ $wgSpecialPageGroups = array(); -/** - * Whether or not to sort special pages in Special:Specialpages - */ -$wgSortSpecialPages = true; - /** * On Special:Unusedimages, consider images "used", if they are put * into a category. Default (false) is not to count those as used. diff --git a/includes/specials/SpecialSpecialpages.php b/includes/specials/SpecialSpecialpages.php index 3ba50bbd07..eff06f4603 100644 --- a/includes/specials/SpecialSpecialpages.php +++ b/includes/specials/SpecialSpecialpages.php @@ -49,8 +49,6 @@ class SpecialSpecialpages extends UnlistedSpecialPage { } private function getPageGroups() { - global $wgSortSpecialPages; - $pages = SpecialPageFactory::getUsablePages( $this->getUser() ); if ( !count( $pages ) ) { @@ -76,10 +74,8 @@ class SpecialSpecialpages extends UnlistedSpecialPage { } /** Sort */ - if ( $wgSortSpecialPages ) { - foreach ( $groups as $group => $sortedPages ) { - ksort( $groups[$group] ); - } + foreach ( $groups as $group => $sortedPages ) { + ksort( $groups[$group] ); } /** Always move "other" to end */