Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-39563 Fixing mobilecssurl is not being returned in WebService, ph…

…punit tests

Conflicts:

	webservice/externallib.php
  • Loading branch information...
commit 2500cd01b1891af104556fd66dc93d2c71037131 1 parent 2500fc5
@jleyva jleyva authored damyon committed
View
4 webservice/externallib.php
@@ -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('admin', 'mobilecssurl');
+ // Mobile CSS theme and alternative login url.
+ $siteinfo['mobilecssurl'] = get_config(null, 'mobilecssurl');
return $siteinfo;
}
View
2  webservice/tests/externallib_test.php
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.