MDL-51784 general: Adding missing php4 style constructors
Adding them to maintain backwards compatibility.
This commit is contained in:
@@ -1190,6 +1190,13 @@ class graph {
|
||||
//ImageColorTransparent($this->image, $this->colour['white']); // colour for transparency
|
||||
}
|
||||
|
||||
/**
|
||||
* Old syntax of class constructor. Deprecated in PHP7.
|
||||
*/
|
||||
public function graph() {
|
||||
self::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare label's text for GD output.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user