mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-76991 tool_mobile: Return course format indentation setting
This commit is contained in:
parent
a7c64595c8
commit
6d2c321d7c
2 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue