mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
Merge branch 'MDL-65893-master' of https://github.com/nicoroeser/moodle
This commit is contained in:
commit
4a4a3e0e27
@ -77,6 +77,7 @@ class core_webservice_external extends external_api {
|
||||
array('serviceshortnames'=>$serviceshortnames));
|
||||
|
||||
$context = context_user::instance($USER->id);
|
||||
$systemcontext = context_system::instance();
|
||||
|
||||
$userpicture = new user_picture($USER);
|
||||
$userpicture->size = 1; // Size f1.
|
||||
@ -84,7 +85,7 @@ class core_webservice_external extends external_api {
|
||||
|
||||
// Site information.
|
||||
$siteinfo = array(
|
||||
'sitename' => $SITE->fullname,
|
||||
'sitename' => external_format_string($SITE->fullname, $systemcontext),
|
||||
'siteurl' => $CFG->wwwroot,
|
||||
'username' => $USER->username,
|
||||
'firstname' => $USER->firstname,
|
||||
|
Loading…
x
Reference in New Issue
Block a user