Change all the "new class" by "new Class"

This commit is contained in:
2021-05-07 13:10:37 +02:00
parent c8d275be31
commit c09fa961cd
39 changed files with 430 additions and 432 deletions

View File

@@ -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]);
}
}