From 4f32c9fe799036b9d4368a3e77036f7a2e6ac2b2 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Thu, 31 May 2018 12:25:08 -0700 Subject: [PATCH] Follow-up If8dfdaf1, I1c5eee3f: Don't assume INTL_ICU_VERSION exists on Special:Version Change-Id: Ib0d3d33d74c70949769a0bda9e3901be3d197d1d --- includes/specials/SpecialVersion.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 0258433250..911c9a63e3 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -233,7 +233,9 @@ class SpecialVersion extends SpecialPage { } $software[$dbr->getSoftwareLink()] = $dbr->getServerInfo(); - $software['[http://site.icu-project.org/ ICU]'] = INTL_ICU_VERSION; + if ( defined( 'INTL_ICU_VERSION' ) ) { + $software['[http://site.icu-project.org/ ICU]'] = INTL_ICU_VERSION; + } // Allow a hook to add/remove items. Hooks::run( 'SoftwareInfo', [ &$software ] ); -- 2.20.1