Skip to content

Commit

Permalink
Merge branch 'MDL-69061-39' of https://github.com/junpataleta/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_39_STABLE
  • Loading branch information
junpataleta committed Jan 11, 2022
2 parents 6c70a26 + 63abb48 commit 9a993a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/classes/component.php
Expand Up @@ -440,7 +440,7 @@ protected static function fetch_subsystems() {
$path = $CFG->admin;
}
if (strpos($path, 'admin/') === 0) {
$path = $CFG->admin . substr($path, 0, 5);
$path = $CFG->admin . substr($path, 5);
}
}

Expand All @@ -461,7 +461,7 @@ protected static function fetch_plugintypes() {
foreach (self::fetch_component_source('plugintypes') as $plugintype => $path) {
// Replace admin/ with the config setting.
if ($CFG->admin !== 'admin' && strpos($path, 'admin/') === 0) {
$path = $CFG->admin . substr($path, 0, 5);
$path = $CFG->admin . substr($path, 5);
}
$types[$plugintype] = "{$CFG->dirroot}/{$path}";
}
Expand Down

0 comments on commit 9a993a7

Please sign in to comment.