MDL-35242 Web Services: Removed translation causing error in add_to_log
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user