mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-35242 Web Services: Removed translation causing error in add_to_log
This commit is contained in:
parent
c366bea3cf
commit
aa57854075
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue