Navigation Menu

Skip to content

Commit

Permalink
MDL-35242 Web Services: Removed translation causing error in add_to_log
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Sep 21, 2012
1 parent f9a8571 commit f3d7347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login/token.php
Expand Up @@ -160,7 +160,7 @@
$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);
Expand Down

0 comments on commit f3d7347

Please sign in to comment.