MDL-76991 tool_mobile: Return course format indentation setting

This commit is contained in:
Amaia Anabitarte 2023-03-13 11:47:05 +01:00
parent a7c64595c8
commit 6d2c321d7c
2 changed files with 6 additions and 2 deletions

View File

@ -453,7 +453,9 @@ class format_topics extends core_courseformat\base {
*/
public function get_config_for_external() {
// Return everything (nothing to hide).
return $this->get_format_options();
$formatoptions = $this->get_format_options();
$formatoptions['indentation'] = get_config('format_topics', 'indentation');
return $formatoptions;
}
}

View File

@ -615,7 +615,9 @@ class format_weeks extends core_courseformat\base {
*/
public function get_config_for_external() {
// Return everything (nothing to hide).
return $this->get_format_options();
$formatoptions = $this->get_format_options();
$formatoptions['indentation'] = get_config('format_weeks', 'indentation');
return $formatoptions;
}
}