mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
Disable unidecode lib loading if mb_ord() not available (PHP>=7.2 required)
This commit is contained in:
parent
27f06b7b66
commit
7cb8620cb5
1 changed files with 2 additions and 1 deletions
|
@ -536,7 +536,8 @@ function ___($msg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to load unidecode library
|
// Try to load unidecode library
|
||||||
if (!function_exists('unidecode')) {
|
// Note: unidecode lib use mb_ord function only available since PHP 7.2.
|
||||||
|
if (!function_exists('unidecode') && function_exists('mb_ord')) {
|
||||||
if (file_exists(LS_LIB_DIR."/unidecode/unidecode.php"))
|
if (file_exists(LS_LIB_DIR."/unidecode/unidecode.php"))
|
||||||
@include(LS_LIB_DIR."/unidecode/unidecode.php");
|
@include(LS_LIB_DIR."/unidecode/unidecode.php");
|
||||||
if (!function_exists('unidecode') && stream_resolve_include_path("unidecode/unidecode.php"))
|
if (!function_exists('unidecode') && stream_resolve_include_path("unidecode/unidecode.php"))
|
||||||
|
|
Loading…
Reference in a new issue