Skip to content

Commit

Permalink
MDL-39563 Fixing mobilecssurl is not being returned in WebService, ph…
Browse files Browse the repository at this point in the history
…punit tests
  • Loading branch information
jleyva committed Jul 11, 2013
1 parent 70f3a47 commit 9184d44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webservice/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ public static function get_site_info($serviceshortnames = array()) {

$siteinfo['functions'] = $availablefunctions;

// Mobile CSS theme and alternative login url
$siteinfo['mobilecssurl'] = get_config(NULL, 'mobilecssurl');
// Mobile CSS theme and alternative login url.
$siteinfo['mobilecssurl'] = get_config(null, 'mobilecssurl');

return $siteinfo;
}
Expand Down
2 changes: 1 addition & 1 deletion webservice/tests/externallib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function test_get_site_info() {
$this->assertEquals(true, $siteinfo['downloadfiles']);
$this->assertEquals($CFG->release, $siteinfo['release']);
$this->assertEquals($CFG->version, $siteinfo['version']);
$this->assertEquals(get_config('admin', 'mobilecssurl'), $siteinfo['mobilecssurl']);
$this->assertEquals(get_config(null, 'mobilecssurl'), $siteinfo['mobilecssurl']);
$this->assertEquals(count($siteinfo['functions']), 1);
$function = array_pop($siteinfo['functions']);
$this->assertEquals($function['name'], 'core_course_get_contents');
Expand Down

0 comments on commit 9184d44

Please sign in to comment.