MDL-51784 various: use __construct() for PHP7 compatibility

This commit is contained in:
Marina Glancy
2015-12-11 12:48:24 +08:00
committed by David Monllao
parent 05178f0745
commit c4d0b752a2
35 changed files with 235 additions and 60 deletions
+1 -1
View File
@@ -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);