Skip to content

Commit

Permalink
Merge branch '1.6' of https://github.com/PrestaShop/PrestaShop into 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Shudrum committed Jan 21, 2015
2 parents 79fbebd + 18724f6 commit c03ffba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/Tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -1859,6 +1859,9 @@ public static function toUnderscoreCase($string)

public static function getBrightness($hex)
{
if (Tools::strtolower($hex) == 'transparent')
return '129';

$hex = str_replace('#', '', $hex);
$r = hexdec(substr($hex, 0, 2));
$g = hexdec(substr($hex, 2, 2));
Expand Down

0 comments on commit c03ffba

Please sign in to comment.