MDL-76991 tool_mobile: Return course format indentation setting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user