MDL-40220 use new core_component::normalize_component()
This commit is contained in:
@@ -332,7 +332,7 @@ class tool_installaddon_validator {
|
||||
|
||||
if (isset($info[$type.'->component'])) {
|
||||
$this->versionphp['component'] = $info[$type.'->component'];
|
||||
list($reqtype, $reqname) = normalize_component($this->versionphp['component']);
|
||||
list($reqtype, $reqname) = core_component::normalize_component($this->versionphp['component']);
|
||||
if ($reqtype !== $this->assertions['plugintype']) {
|
||||
$this->add_message(self::ERROR, 'componentmismatchtype', array(
|
||||
'expected' => $this->assertions['plugintype'],
|
||||
|
||||
Reference in New Issue
Block a user