webservice MDL-20805 add missing exception string message

This commit is contained in:
jerome mouneyrac
2010-01-13 04:03:52 +00:00
parent c0b22a3f96
commit 8c594bbb11
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ switch ($action) {
if (empty($service->requiredcapability) || has_capability($service->requiredcapability, $systemcontext, $data->user)) {
$newtoken->externalserviceid = $data->service;
} else {
throw new moodle_exception('userhasnocapabilitytousethisservice');
throw new moodle_exception('nocapabilitytousethisservice');
}
$newtoken->tokentype = 2;
$newtoken->userid = $data->user;
+2
View File
@@ -335,6 +335,7 @@ $string['noblocks'] = 'No blocks found!';
$string['nodata'] = 'No data';
$string['noformdesc'] = 'No formslib form description file found for this activity.';
$string['nofile'] = 'File not specified';
$string['nocapabilitytousethisservice'] = 'The user hasn\'t the required capability to use this service';
$string['nocategorydelete'] = 'Category \'$a\' cannot be deleted!';
$string['nocontext'] = 'Sorry, but that course is not a valid context';
$string['noinstances'] = 'There are no instances of $a in this course!';
@@ -399,6 +400,7 @@ $string['searchableselectorcannotbemultiple'] = 'A searchableselector form eleme
$string['sectionnotexist'] = 'This section does not exist';
$string['secretalreadyused'] = 'Change password confirmation link was already used, password was not changed';
$string['sendmessage'] = 'Send message';
$string['servicedonotexist'] = 'The service does not exist';
$string['sessioncookiesdisable'] = 'Incorrect use of require_key_login() - session cookies must be disabled!';
$string['sessiondiskfull'] = 'The session partition is full. It is not possible to login at this time.<br /><br />Please notify server administrator.';
$string['sessionerroruser'] = 'Your session has timed out. Please login again.';