From: Michael M Slusarz Date: Thu, 16 Dec 2010 17:13:10 +0000 (-0700) Subject: Fix function name X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c6cd10fcd7d75427816e69dd7ead77c1727c53fd;p=horde.git Fix function name --- diff --git a/framework/Image/lib/Horde/Image.php b/framework/Image/lib/Horde/Image.php index 819eac5d0..85e7a8d06 100644 --- a/framework/Image/lib/Horde/Image.php +++ b/framework/Image/lib/Horde/Image.php @@ -25,7 +25,7 @@ class Horde_Image */ static public function modifyColor($color, $factor = 0x11) { - list($r, $g, $b) = self::_getColor($color); + list($r, $g, $b) = self::getColor($color); $r = min(max($r + $factor, 0), 255); $g = min(max($g + $factor, 0), 255); @@ -44,7 +44,7 @@ class Horde_Image */ static public function moreIntenseColor($color, $factor = 0x11) { - list($r, $g, $b) = self::_getColor($color); + list($r, $g, $b) = self::getColor($color); if ($r >= $g && $r >= $b) { $g = $g / $r; @@ -85,7 +85,7 @@ class Horde_Image */ static public function brightness($color) { - list($r, $g, $b) = self::_getColor($color); + list($r, $g, $b) = self::getColor($color); return round((($r * 299) + ($g * 587) + ($b * 114)) / 1000); } @@ -114,7 +114,7 @@ class Horde_Image * * @return array Array with three elements: red, green, and blue. */ - static public function _getColor($color) + static public function getColor($color) { if ($color[0] == '#') { $color = substr($color, 1);