1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-01-17 19:18:15 +01:00

correcting issue with PHP 5.3 where array is used as constant

This commit is contained in:
Mikael Roos 2014-12-03 15:42:49 +01:00
parent 3aa5542664
commit cdbc9b4adb

View File

@ -50,21 +50,31 @@ class CImage
/**
* Default background color, red, green, blue, alpha.
*
* @todo remake when upgrading to PHP 5.5
*/
/*
const BACKGROUND_COLOR = array(
'red' => 0,
'green' => 0,
'blue' => 0,
'alpha' => null,
);
);*/
/**
* Default background color to use.
*
* @todo remake when upgrading to PHP 5.5
*/
private $bgColorDefault = self::BACKGROUND_COLOR;
//private $bgColorDefault = self::BACKGROUND_COLOR;
private $bgColorDefault = array(
'red' => 0,
'green' => 0,
'blue' => 0,
'alpha' => null,
);
/**