Skip to content

Commit

Permalink
MDL-73397 admin: Use method from new core_adminpresets
Browse files Browse the repository at this point in the history
In MDL-73145, a new $CFG setting was added to let define the preset
to be installed.
This patch replaces the method call to the new one that has been
moved from tool_admin_presets plugin to core_adminpresets component.
  • Loading branch information
sarjona authored and Amaia Anabitarte committed Jan 4, 2022
1 parent 1f47ef1 commit e046c6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/index.php
Expand Up @@ -722,7 +722,7 @@

// Apply default preset, if it is defined in $CFG and has a valid value.
if (!empty($CFG->setsitepresetduringinstall)) {
\tool_admin_presets\helper::change_default_preset($CFG->setsitepresetduringinstall);
\core_adminpresets\helper::change_default_preset($CFG->setsitepresetduringinstall);
}

// we need this redirect to setup proper session
Expand Down
2 changes: 1 addition & 1 deletion lib/installlib.php
Expand Up @@ -538,6 +538,6 @@ function install_cli_database(array $options, $interactive) {

// Apply default preset, if it is defined in $CFG and has a valid value.
if (!empty($CFG->setsitepresetduringinstall)) {
\tool_admin_presets\helper::change_default_preset($CFG->setsitepresetduringinstall);
\core_adminpresets\helper::change_default_preset($CFG->setsitepresetduringinstall);
}
}

0 comments on commit e046c6e

Please sign in to comment.