MDL-35242 Web Services: Removed translation causing error in add_to_log

This commit is contained in:
Frederic Massart 2012-09-17 11:54:37 +08:00
parent c366bea3cf
commit aa57854075

View file

@ -160,7 +160,7 @@ if (!empty($user)) {
$token->timecreated = time(); $token->timecreated = time();
$token->externalserviceid = $service_record->id; $token->externalserviceid = $service_record->id;
$tokenid = $DB->insert_record('external_tokens', $token); $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; $token->id = $tokenid;
} else { } else {
throw new moodle_exception('cannotcreatetoken', 'webservice', '', $serviceshortname); throw new moodle_exception('cannotcreatetoken', 'webservice', '', $serviceshortname);