2
0
forked from Wavyzz/dolibarr

Fix missing php-intl is not blocking (not working on windows)

This commit is contained in:
Laurent Destailleur
2019-06-30 16:19:26 +02:00
parent a992690c43
commit 8f5b575b19
3 changed files with 8 additions and 6 deletions

View File

@@ -7037,7 +7037,7 @@ function getLanguageCodeFromCountryCode($countrycode)
$buildprimarykeytotest = strtolower($countrycode).'-'.strtoupper($countrycode);
if (in_array($buildprimarykeytotest, $locales)) return strtolower($countrycode).'_'.strtoupper($countrycode);
if (function_exists('locale_get_primary_language')) // Need extension php-intl
if (function_exists('locale_get_primary_language') && function_exists('locale_get_region')) // Need extension php-intl
{
foreach ($locales as $locale)
{