mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-35242 Web Services: Removed translation causing error in add_to_log
This commit is contained in:
parent
a3ab18c735
commit
5583a208c9
@ -49,7 +49,6 @@ $string['createservicedescription'] = 'A service is a set of web service functio
|
||||
$string['createserviceforusersdescription'] = 'A service is a set of web service functions. You will allow users to access to a new service. On the <strong>Add service</strong> page check \'Enable\' and uncheck \'Authorised users\' options. Select \'No required capability\'.';
|
||||
$string['createtoken'] = 'Create token';
|
||||
$string['createtokenforuser'] = 'Create a token for a user';
|
||||
$string['createtokenforuserauto'] = 'Create a token for a user automatically';
|
||||
$string['createtokenforuserdescription'] = 'Create a token for the web services user.';
|
||||
$string['createuser'] = 'Create a specific user';
|
||||
$string['createuserdescription'] = 'A web services user is required to represent the system controlling Moodle.';
|
||||
|
@ -160,7 +160,7 @@ if (!empty($user)) {
|
||||
$token->timecreated = time();
|
||||
$token->externalserviceid = $service_record->id;
|
||||
$tokenid = $DB->insert_record('external_tokens', $token);
|
||||
add_to_log(SITEID, 'webservice', get_string('createtokenforuserauto', 'webservice'), '' , 'User ID: ' . $user->id);
|
||||
add_to_log(SITEID, 'webservice', 'automatically create user token', '' , 'User ID: ' . $user->id);
|
||||
$token->id = $tokenid;
|
||||
} else {
|
||||
throw new moodle_exception('cannotcreatetoken', 'webservice', '', $serviceshortname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user