MDL-51784 general: Adding missing php4 style constructors
Adding them to maintain backwards compatibility.
This commit is contained in:
@@ -206,6 +206,13 @@ class component_installer {
|
||||
$this->check_requisites();
|
||||
}
|
||||
|
||||
/**
|
||||
* Old syntax of class constructor. Deprecated in PHP7.
|
||||
*/
|
||||
public function component_installer($sourcebase, $zippath, $zipfilename, $md5filename='', $destpath='') {
|
||||
self::__construct($sourcebase, $zippath, $zipfilename, $md5filename, $destpath);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will check if everything is properly set to begin
|
||||
* one installation. Also, it will check for required settings
|
||||
|
||||
Reference in New Issue
Block a user