dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ace00ba
)
Check for intl extension in updateCredits.php
author
Umherirrender
<umherirrender_de.wp@web.de>
Fri, 1 Feb 2019 18:57:56 +0000
(19:57 +0100)
committer
Umherirrender
<umherirrender_de.wp@web.de>
Fri, 1 Feb 2019 18:57:56 +0000
(19:57 +0100)
Change-Id: Ifa2892b2f38fa73362c3ac60e1d90614cdbc0a93
maintenance/updateCredits.php
patch
|
blob
|
history
diff --git
a/maintenance/updateCredits.php
b/maintenance/updateCredits.php
index
b7e8c1c
..
25ce3ce
100644
(file)
--- 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 = '<!-- BEGIN CONTRIBUTOR LIST -->';
$END_CONTRIBUTORS = '<!-- END CONTRIBUTOR LIST -->';