mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Fix: Avoid to have a special php module.
This commit is contained in:
@@ -3994,18 +3994,6 @@ function printCommonFooter($zone='private')
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert unicode
|
||||
*
|
||||
* @param string $unicode Unicode
|
||||
* @param string $encoding Encoding type
|
||||
* @return string Unicode converted
|
||||
*/
|
||||
function unichr($unicode , $encoding = 'UTF-8')
|
||||
{
|
||||
return mb_convert_encoding("&#{$unicode};", $encoding, 'HTML-ENTITIES');
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert an array with RGB value into hex RGB value
|
||||
*
|
||||
@@ -4035,11 +4023,11 @@ function getCurrencySymbol($currency_code)
|
||||
|
||||
$form->load_cache_currencies();
|
||||
|
||||
if (is_array($form->cache_currencies[$currency_code]['unicode']) && ! empty($form->cache_currencies[$currency_code]['unicode']))
|
||||
if (function_exists("mb_convert_encoding") && is_array($form->cache_currencies[$currency_code]['unicode']) && ! empty($form->cache_currencies[$currency_code]['unicode']))
|
||||
{
|
||||
foreach($form->cache_currencies[$currency_code]['unicode'] as $unicode)
|
||||
{
|
||||
$currency_sign.= unichr($unicode);
|
||||
$currency_sign .= mb_convert_encoding("&#{$unicode};", "UTF-8", 'HTML-ENTITIES');
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user