Glaisher has uploaded a new change for review.
https://gerrit.wikimedia.org/r/233116
Change subject: SpecialWikiSets: always sort wpWikis by alphabetically
......................................................................
SpecialWikiSets: always sort wpWikis by alphabetically
Bug: T36874
Change-Id: I93c719d10acb1f9c82cd3234a519d9f1e5813e3a
---
M includes/specials/SpecialWikiSets.php
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth
refs/changes/16/233116/1
diff --git a/includes/specials/SpecialWikiSets.php
b/includes/specials/SpecialWikiSets.php
index 87c7d78..ff10c45 100644
--- a/includes/specials/SpecialWikiSets.php
+++ b/includes/specials/SpecialWikiSets.php
@@ -121,10 +121,12 @@
$type = $set ? $set->getType() : WikiSet::OPTIN;
}
if ( !$wikis ) {
- $wikis = implode( "\n", $set ? $set->getWikisRaw() :
array() );
+ $wikis = $set ? $set->getWikisRaw() : array();
} else {
- $wikis = implode( "\n", $wikis );
+ $wikis = $wikis;
}
+ sort( $wikis );
+ $wikis = implode( "\n", $wikis );
$url = SpecialPage::getTitleFor( 'WikiSets', $subpage
)->getLocalUrl();
if ( $this->mCanEdit ) {
// Give grep a chance to find the usages:
--
To view, visit https://gerrit.wikimedia.org/r/233116
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I93c719d10acb1f9c82cd3234a519d9f1e5813e3a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Glaisher <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits