Skip to content

Commit

Permalink
Fix deprecated method call
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Oct 22, 2024
1 parent 81d1ada commit f01dda5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/local/source_code.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function get_included_string_files() {
$files = array();

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

$fullnamefile = 'lang/en/'.$component.'.php';
if (is_readable($this->basepath.'/'.$fullnamefile)) {
Expand Down
2 changes: 1 addition & 1 deletion mlanglib.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ public function get_phpfile_location($treeish=true) {
'it is unable to differentiate core plugins from activity modules. '.
'Using normalize_component() is not reliable much because it depends '.
'on the site version and may be wrong for older/newer versions');
list($type, $plugin) = normalize_component($this->name);
list($type, $plugin) = \core_component::normalize_component($this->name);
if ($type === 'core') {
return 'lang/' . $this->lang . '/' . $this->name . '.php';
} else {
Expand Down

0 comments on commit f01dda5

Please sign in to comment.