MDL-76994 tool_mobile: Return course format indentation setting

This commit is contained in:
Amaia Anabitarte
2023-04-13 16:56:09 +02:00
parent d23ff0a5b3
commit 029457a0a6
2 changed files with 6 additions and 2 deletions
+3 -1
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;
}
}
+3 -1
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;
}
}