}
$software[$dbr->getSoftwareLink()] = $dbr->getServerInfo();
- if ( IcuCollation::getICUVersion() ) {
- $software['[http://site.icu-project.org/ ICU]'] = IcuCollation::getICUVersion();
- }
+ $software['[http://site.icu-project.org/ ICU]'] = INTL_ICU_VERSION;
// Allow a hook to add/remove items.
Hooks::run( 'SoftwareInfo', [ &$software ] );
$ucdallURL = "https://www.unicode.org/Public/<Unicode version>/ucdxml/ucd.all.grouped.zip";
if ( !$allkeysPresent || !$ucdallPresent ) {
- $icuVersion = IcuCollation::getICUVersion();
+ $icuVersion = INTL_ICU_VERSION;
$unicodeVersion = IcuCollation::getUnicodeVersionForICU();
$error = "";
}
$versionKnown = false;
- if ( !$icuVersion ) {
- // Unknown version - either very old intl,
- // or PHP < 5.3.7 which does not expose this information
- $error .= "As MediaWiki could not determine the version of ICU library used by your PHP's "
- . "intl extension it can't suggest which file version to download. "
- . "This can be caused by running a very old version of intl or PHP < 5.3.7. "
- . "If you are sure everything is all right, find out the ICU version "
- . "by running phpinfo(), check what is the Unicode version it is using "
- . "at http://site.icu-project.org/download, then try finding appropriate data file(s) at:";
- } elseif ( version_compare( $icuVersion, "4.0", "<" ) ) {
+ if ( version_compare( $icuVersion, "4.0", "<" ) ) {
// Extra old version
$error .= "You are using outdated version of ICU ($icuVersion), intended for "
. ( $unicodeVersion ? "Unicode $unicodeVersion" : "an unknown version of Unicode" )