From: Umherirrender Date: Fri, 1 Feb 2019 18:57:56 +0000 (+0100) Subject: Check for intl extension in updateCredits.php X-Git-Tag: 1.34.0-rc.0~2972^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=bd7ff019c9bce29d195b59c2c5b4cb0d34dc6d93;p=lhc%2Fweb%2Fwiklou.git Check for intl extension in updateCredits.php Change-Id: Ifa2892b2f38fa73362c3ac60e1d90614cdbc0a93 --- 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 = '';