Skip to content

Commit f01dda5

Browse files
committed
Fix deprecated method call
1 parent 81d1ada commit f01dda5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

classes/local/source_code.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function get_included_string_files() {
171171
$files = array();
172172

173173
$component = $this->versionphp['component'];
174-
[$plugintype, $pluginname] = normalize_component($component);
174+
[$plugintype, $pluginname] = \core_component::normalize_component($component);
175175

176176
$fullnamefile = 'lang/en/'.$component.'.php';
177177
if (is_readable($this->basepath.'/'.$fullnamefile)) {

mlanglib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ public function get_phpfile_location($treeish=true) {
520520
'it is unable to differentiate core plugins from activity modules. '.
521521
'Using normalize_component() is not reliable much because it depends '.
522522
'on the site version and may be wrong for older/newer versions');
523-
list($type, $plugin) = normalize_component($this->name);
523+
list($type, $plugin) = \core_component::normalize_component($this->name);
524524
if ($type === 'core') {
525525
return 'lang/' . $this->lang . '/' . $this->name . '.php';
526526
} else {

0 commit comments

Comments
 (0)