From 63a2e643e99115ccd0c5499b37ecc5b4524c1a72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 13 Aug 2015 16:31:39 +0200 Subject: [PATCH] Expose ICU version on Special:Version ICU (International Components for Unicode) is used to implement ordering of category members (category collation) when $wgCategoryCollation is set to one of the supported "uca-xx" collations. Its version determines whether the ordering will be correct for a number of languages MediaWiki supports. Change-Id: Id938a9510074f1743a57a840590cabcf3b90a103 --- includes/specials/SpecialVersion.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index e598f0bfa9..f6fa5ea36f 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -215,6 +215,10 @@ class SpecialVersion extends SpecialPage { } $software[$dbr->getSoftwareLink()] = $dbr->getServerInfo(); + if ( IcuCollation::getICUVersion() ) { + $software['[http://site.icu-project.org/ ICU]'] = IcuCollation::getICUVersion(); + } + // Allow a hook to add/remove items. Hooks::run( 'SoftwareInfo', array( &$software ) ); -- 2.20.1