Follow-up If8dfdaf1, I1c5eee3f: Don't assume INTL_ICU_VERSION exists on Special:Version
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 31 May 2018 19:25:08 +0000 (12:25 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Thu, 31 May 2018 19:25:08 +0000 (12:25 -0700)
Change-Id: Ib0d3d33d74c70949769a0bda9e3901be3d197d1d

includes/specials/SpecialVersion.php

index 0258433..911c9a6 100644 (file)
@@ -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 ] );