From c6cd10fcd7d75427816e69dd7ead77c1727c53fd Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 16 Dec 2010 10:13:10 -0700 Subject: [PATCH] Fix function name --- framework/Image/lib/Horde/Image.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.11.0