forked from blallo/rss-bridge
[index.php] Add extension check for 'mbstring'
The mbstring extension is required by all formats in order to convert multi- byte characters to UTF-8. This commit adds an extension check to throw an error message if the extension is not enabled.
This commit is contained in:
parent
6eea51eeeb
commit
29a1c7ac09
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,9 @@ if(!extension_loaded('openssl'))
|
||||||
if(!extension_loaded('libxml'))
|
if(!extension_loaded('libxml'))
|
||||||
die('"libxml" extension not loaded. Please check "php.ini"');
|
die('"libxml" extension not loaded. Please check "php.ini"');
|
||||||
|
|
||||||
|
if(!extension_loaded('mbstring'))
|
||||||
|
die('"mbstring" extension not loaded. Please check "php.ini"');
|
||||||
|
|
||||||
// configuration checks
|
// configuration checks
|
||||||
if(ini_get('allow_url_fopen') !== "1")
|
if(ini_get('allow_url_fopen') !== "1")
|
||||||
die('"allow_url_fopen" is not set to "1". Please check "php.ini');
|
die('"allow_url_fopen" is not set to "1". Please check "php.ini');
|
||||||
|
|
Loading…
Reference in a new issue