From bd7ff019c9bce29d195b59c2c5b4cb0d34dc6d93 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 1 Feb 2019 19:57:56 +0100 Subject: [PATCH] Check for intl extension in updateCredits.php Change-Id: Ifa2892b2f38fa73362c3ac60e1d90614cdbc0a93 --- maintenance/updateCredits.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintenance/updateCredits.php b/maintenance/updateCredits.php index b7e8c1ccd3..25ce3ceb12 100644 --- a/maintenance/updateCredits.php +++ b/maintenance/updateCredits.php @@ -26,6 +26,12 @@ if ( PHP_SAPI != 'cli' ) { die( "This script can only be run from the command line.\n" ); } +// class Collator is provided by the intl extension. +// It is only suggested in composer.json, so remind here when not loaded. +if ( !extension_loaded( 'intl' ) ) { + die( "This script needs the 'intl' extension to be loaded." ); +} + $CREDITS = 'CREDITS'; $START_CONTRIBUTORS = ''; $END_CONTRIBUTORS = ''; -- 2.20.1