Skip to content

Commit

Permalink
MDL-76991 tool_mobile: Return course format indentation setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaia Anabitarte committed Mar 13, 2023
1 parent a7c6459 commit 6d2c321
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion course/format/topics/lib.php
Expand Up @@ -453,7 +453,9 @@ public function section_action($section, $action, $sr) {
*/
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;
}
}

Expand Down
4 changes: 3 additions & 1 deletion course/format/weeks/lib.php
Expand Up @@ -615,7 +615,9 @@ public static function update_end_date($courseid) {
*/
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;
}
}

Expand Down

0 comments on commit 6d2c321

Please sign in to comment.