MDL-73233 tool_mobile: Return enabledashboard setting

External function tool_mobile::get_config now returns the
enabledashboard setting.
This commit is contained in:
Sara Arjona
2022-03-16 11:35:09 +01:00
parent 42c96d1708
commit 07f7da93cc
3 changed files with 7 additions and 1 deletions
+4
View File
@@ -340,6 +340,10 @@ class api {
$settings->coursegraceperiodbefore = $CFG->coursegraceperiodbefore;
}
if (empty($section) || $section === 'navigation') {
$settings->enabledashboard = $CFG->enabledashboard;
}
return $settings;
}