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
@@ -190,7 +190,7 @@ class component_installer {
* be expanded (default='' = moodledataitself)
* @return object
*/
function component_installer ($sourcebase, $zippath, $zipfilename, $md5filename='', $destpath='') {
public function __construct($sourcebase, $zippath, $zipfilename, $md5filename='', $destpath='') {
$this->sourcebase = $sourcebase;
$this->zippath = $zippath;