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:
parent
3aa5542664
commit
cdbc9b4adb
16
CImage.php
16
CImage.php
@ -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,
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user