MDL-51784 various: use __construct() for PHP7 compatibility
This commit is contained in:
committed by
David Monllao
parent
05178f0745
commit
c4d0b752a2
+1
-1
@@ -1173,7 +1173,7 @@ class graph {
|
||||
return array('min' => $min, 'max' => $max);
|
||||
}
|
||||
|
||||
function graph() {
|
||||
public function __construct() {
|
||||
if (func_num_args() == 2) {
|
||||
$this->parameter['width'] = func_get_arg(0);
|
||||
$this->parameter['height'] = func_get_arg(1);
|
||||
|
||||
Reference in New Issue
Block a user