Fix: Bug war.

Look: enhance look for map views.
This commit is contained in:
Laurent Destailleur
2012-04-08 13:05:58 +02:00
parent 5817b16923
commit 9df05381d1
10 changed files with 101 additions and 60 deletions

View File

@@ -3994,6 +3994,19 @@ function unichr($unicode , $encoding = 'UTF-8')
{
return mb_convert_encoding("&#{$unicode};", $encoding, 'HTML-ENTITIES');
}
/**
* Convert an array with RGB value into hex RGB value
*
* @param array $arraycolor Array
* @param string $colorifnotfound Color code to return if entry not defined
* @return string RGB hex value (without # before). For example: FF00FF
*/
function colorArrayToHex($arraycolor,$colorifnotfound='888888')
{
if (! is_array($arraycolor)) return $colorifnotfound;
return dechex($arraycolor[0]).dechex($arraycolor[1]).dechex($arraycolor[2]);
}
/**
* Convert a currency code into its symbol