Change all the "new class" by "new Class"
This commit is contained in:
@@ -244,7 +244,7 @@ class Color
|
||||
*/
|
||||
public static function colorList ()
|
||||
{
|
||||
$color = new \color ();
|
||||
$color = new color ();
|
||||
$colorList = $color->colorList;
|
||||
return array_keys ($colorList);
|
||||
}
|
||||
@@ -254,7 +254,7 @@ class Color
|
||||
*/
|
||||
public static function textToRGB ($colorInText)
|
||||
{
|
||||
$color = new \color ();
|
||||
$color = new color ();
|
||||
$colorList = $color->colorList;
|
||||
if (! array_key_exists ($colorInText, $colorList))
|
||||
throw new \Exception (sprintf (dgettext ("domframework",
|
||||
@@ -273,7 +273,7 @@ class Color
|
||||
throw new \Exception (dgettext ("domframework",
|
||||
"No GD support in PHP : can't allocate color"),
|
||||
500);
|
||||
$rgb = \color::textToRGB ($colorInText);
|
||||
$rgb = color::textToRGB ($colorInText);
|
||||
return imagecolorallocate ($gd, $rgb[0], $rgb[1], $rgb[2]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user