mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-55356 backup: Correct variable name
This commit is contained in:
parent
da419adfb0
commit
77b2662ffb
@ -102,7 +102,7 @@ abstract class restore_block_task extends restore_task {
|
||||
if (\core_search\manager::is_indexing_enabled()) {
|
||||
$wholecourse = $this->get_target() == backup::TARGET_NEW_COURSE;
|
||||
$wholecourse = $wholecourse || $this->setting_exists('overwrite_conf') && $this->get_setting_value('overwrite_conf');
|
||||
if (!$required) {
|
||||
if (!$wholecourse) {
|
||||
$this->add_step(new restore_block_search_index('block_search_index'));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user