Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.5.0
-
Fix Version/s: 3.5.1
-
Component/s: None
-
Labels:None
Description
PHP 5.2 does not support the use of class constants from object references. This was not added until PHP 5.3.
On PHP 5.2 installations of Blesta, this results in:
syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ')' in app/models/packages.php on line 735
Due to:
$periods = array($Proration::PERIOD_DAY, $Proration::PERIOD_WEEK, $Proration::PERIOD_MONTH, $Proration::PERIOD_YEAR);
Should be:
$periods = array(Proration::PERIOD_DAY, Proration::PERIOD_WEEK, Proration::PERIOD_MONTH, Proration::PERIOD_YEAR);