Skip to content

Commit

Permalink
Merge branch 'MDL-69810-master' of git://github.com/jleyva/moodle int…
Browse files Browse the repository at this point in the history
…o master
  • Loading branch information
stronk7 committed Oct 8, 2020
2 parents 61da7e4 + 09cc128 commit 2be470a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admin/tool/mobile/classes/api.php
Expand Up @@ -323,6 +323,12 @@ public static function get_config($section) {
}
}

if (empty($section) or $section == 'supportcontact') {
$settings->supportname = $CFG->supportname;
$settings->supportemail = $CFG->supportemail;
$settings->supportpage = $CFG->supportpage;
}

return $settings;
}

Expand Down
4 changes: 4 additions & 0 deletions admin/tool/mobile/tests/externallib_test.php
Expand Up @@ -230,6 +230,10 @@ public function test_get_config() {
'value' => get_config('core_admin', 'coursecolor' . $number)
];
}
$expected[] = ['name' => 'supportname', 'value' => $CFG->supportname];
$expected[] = ['name' => 'supportemail', 'value' => $CFG->supportemail];
$expected[] = ['name' => 'supportpage', 'value' => $CFG->supportpage];

$this->assertCount(0, $result['warnings']);
$this->assertEquals($expected, $result['settings']);

Expand Down

0 comments on commit 2be470a

Please sign in to comment.