MDL-51784 general: Adding missing php4 style constructors
Adding them to maintain backwards compatibility.
This commit is contained in:
@@ -125,6 +125,13 @@ class EvalMath {
|
||||
$this->allowimplicitmultiplication = $allowimplicitmultiplication;
|
||||
}
|
||||
|
||||
/**
|
||||
* Old syntax of class constructor. Deprecated in PHP7.
|
||||
*/
|
||||
public function EvalMath($allowconstants = false, $allowimplicitmultiplication = false) {
|
||||
self::__construct($allowconstants, $allowimplicitmultiplication);
|
||||
}
|
||||
|
||||
function e($expr) {
|
||||
return $this->evaluate($expr);
|
||||
}
|
||||
|
||||
@@ -11,9 +11,10 @@ Our changes:
|
||||
* made a function to test a string to see if it is a valid func or var name.
|
||||
* localized strings
|
||||
* added round, ceil and floor functions.
|
||||
* EvalMath::EvalMath() changed to EvalMath::__construct()
|
||||
* EvalMath::EvalMath() changed to EvalMath::__construct() and there is a new EvalMath::EvalMath
|
||||
function to maintain backwards compatibility
|
||||
|
||||
To see all changes diff against version 1.1, available from:
|
||||
http://www.phpclasses.org/browse/package/2695.html
|
||||
|
||||
skodak, Tim Hunt
|
||||
skodak, Tim Hunt
|
||||
|
||||
Reference in New Issue
Block a user