mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-76991 tool_mobile: Return course format indentation setting
This commit is contained in:
parent
a7c64595c8
commit
6d2c321d7c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user