Skip to content
Browse files

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

…punit tests
  • Loading branch information...
1 parent 70f3a47 commit 9184d44dedd8440980f96b010fd17295fa64b74a @jleyva jleyva committed Jul 11, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 webservice/externallib.php
  2. +1 −1 webservice/tests/externallib_test.php
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(NULL, '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');

0 comments on commit 9184d44

Please sign in to comment.
Something went wrong with that request. Please try again.