mirror of
https://github.com/mosbth/cimage.git
synced 2025-07-31 05:30:09 +02:00
correcting issue with PHP 5.3 where array is used as constant
This commit is contained in:
16
CImage.php
16
CImage.php
@@ -50,21 +50,31 @@ class CImage
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Default background color, red, green, blue, alpha.
|
* Default background color, red, green, blue, alpha.
|
||||||
|
*
|
||||||
|
* @todo remake when upgrading to PHP 5.5
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
const BACKGROUND_COLOR = array(
|
const BACKGROUND_COLOR = array(
|
||||||
'red' => 0,
|
'red' => 0,
|
||||||
'green' => 0,
|
'green' => 0,
|
||||||
'blue' => 0,
|
'blue' => 0,
|
||||||
'alpha' => null,
|
'alpha' => null,
|
||||||
);
|
);*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default background color to use.
|
* 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,
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user