From: Bryan Davis Date: Tue, 6 Oct 2015 04:12:32 +0000 (-0600) Subject: Sort MWNamespace::getValidNamespaces list numerically X-Git-Tag: 1.31.0-rc.0~9533^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=578bcde7d92fe90a28691eff3d5469aee879337f;p=lhc%2Fweb%2Fwiklou.git Sort MWNamespace::getValidNamespaces list numerically Bug: T109137 Change-Id: Ic6b7635884628c8c3cf1cdfb01dad49bab292d6c --- diff --git a/includes/MWNamespace.php b/includes/MWNamespace.php index 8ca205ab42..0dd709f1e4 100644 --- a/includes/MWNamespace.php +++ b/includes/MWNamespace.php @@ -271,6 +271,8 @@ class MWNamespace { $mValidNamespaces[] = $ns; } } + // T109137: sort numerically + sort( $mValidNamespaces, SORT_NUMERIC ); } return $mValidNamespaces;