Fixed: Several fix in color management (function at wrong place, mark

param that are deprecated, convertion of value to get correct
format in all situation)
This commit is contained in:
Laurent Destailleur
2014-12-08 19:05:22 +01:00
parent f1ec0348ce
commit a8052d8ea4
5 changed files with 52 additions and 24 deletions

View File

@@ -4835,19 +4835,6 @@ function dolExplodeIntoArray($string, $delimiter = ';', $kv = '=')
}
/**
* 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]);
}
/**
* Set focus onto field with selector
*