Skip to content

Commit 7324c9d

Browse files
committed
Add intl requirement to the installer (#784)
1 parent 0afc14f commit 7324c9d

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

docs/NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Version 2.6-alpha1 ()
22
------------------------------------------------------------------------
33

4+
* Let installer check for the intl extension, needed for the strftime
5+
compatibility library used for PHP 8.1+
6+
47
* Update Parser of textile plugin
58

69
* Update smarty from v4.3.5 to v5.4.3. This new major version has

include/admin/installer.inc.php

+6
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ function serendipity_installerResultDiagnose($result, $s) {
171171
} else {
172172
$data['installerResultDiagnose_ICONV'] = serendipity_installerResultDiagnose(S9Y_I_WARNING, NO);
173173
}
174+
175+
if ( extension_loaded('intl') ) {
176+
$data['installerResultDiagnose_INTL'] = serendipity_installerResultDiagnose(S9Y_I_SUCCESS, YES);
177+
} else {
178+
$data['installerResultDiagnose_INTL'] = serendipity_installerResultDiagnose(S9Y_I_WARNING, NO);
179+
}
174180

175181
if ( extension_loaded('zlib') ) {
176182
$data['installerResultDiagnose_ZLIB'] = serendipity_installerResultDiagnose(S9Y_I_SUCCESS, YES);

templates/2k11/admin/installer.inc.tpl

+4
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@
103103
<td>iconv extension</td>
104104
<td>{$installerResultDiagnose_ICONV}</td>
105105
</tr>
106+
<tr>
107+
<td>intl extension</td>
108+
<td>{$installerResultDiagnose_INTL}</td>
109+
</tr>
106110
<tr>
107111
<td>zlib extension</td>
108112
<td>{$installerResultDiagnose_ZLIB}</td>

0 commit comments

Comments
 (0)