From f05d21935359dbc2fd2196de5214d109c054d326 Mon Sep 17 00:00:00 2001 From: jerome mouneyrac Date: Thu, 4 Feb 2010 07:06:27 +0000 Subject: [PATCH] webservice MDL-21351 fix some wording in the overview and some links --- lang/en_utf8/webservice.php | 2 +- lib/adminlib.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lang/en_utf8/webservice.php b/lang/en_utf8/webservice.php index fa133069789..265f4773878 100644 --- a/lang/en_utf8/webservice.php +++ b/lang/en_utf8/webservice.php @@ -21,7 +21,6 @@ $string['checkusercapability'] = 'Check user capability'; $string['checkusercapabilitydescription'] = 'To use the web services, a user needs to have a capability matching the web service protocols (\'webservice/rest:use\', \'webservice/soap:use\', ...).
Advice: one way to set this up is to create a new \'Web Service\' system role with protocol capabilities defined. Then you assign this system role to the web service user.'; $string['configwebserviceplugins'] = 'For security reasons, only protocols that are in use should be enabled.'; $string['context'] = 'Context'; -$string['createservice'] = 'Create a service'; $string['createservicedescription'] = 'A service is a set of web service functions. You will allow the user to access to a new service. On the Add service page check \'Enable\' and \'Authorised users\' options. Select \'No required capability\'.'; $string['createserviceforusersdescription'] = 'A service is a set of web service functions. You will allow users to access to a new service. On the Add service page check \'Enable\' and uncheck \'Authorised users\' options. Select \'No required capability\'.'; $string['createtoken'] = 'Create token'; @@ -98,6 +97,7 @@ $string['selectedcapability'] = 'Selected'; $string['simpleauthlog'] = 'Simple authentication login'; $string['step'] = 'Step'; $string['securitykey'] = 'Security key (token)'; +$string['selectservice'] = 'Select a service'; $string['selectspecificuser'] = 'Select a specific user'; $string['selectspecificuserdescription'] = 'On the Manage service page, click on \'Authorised users\' and add the user to the authorised users list.'; $string['service'] = 'Service'; diff --git a/lib/adminlib.php b/lib/adminlib.php index c7b3b121645..88803f8eb23 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -6377,10 +6377,10 @@ class admin_setting_webservicesoverview extends admin_setting { $row[2] = get_string('checkusercapabilitydescription', 'webservice'); $table->data[] = $row; - /// 5. Create a web service + /// 5. Select a web service $row = array(); - $url = new moodle_url("/admin/webservice/service.php?id=0"); - $row[0] = "5. "."".get_string('createservice', 'webservice').""; + $url = new moodle_url("/admin/settings.php?section=externalservices"); + $row[0] = "5. "."".get_string('selectservice', 'webservice').""; $row[1] = ""; $row[2] = get_string('createservicedescription', 'webservice'); $table->data[] = $row; @@ -6411,7 +6411,7 @@ class admin_setting_webservicesoverview extends admin_setting { /// 9. Enable the documentation $row = array(); - $url = new moodle_url("/admin/search.php?query=Web+services+documentation"); + $url = new moodle_url("/admin/search.php?query=enablewsdocumentation"); $row[0] = "9. "."".get_string('enabledocumentation', 'webservice').""; $status = ''.get_string('no').''; //should never happens as this page should only be seen once web service are activated if ($CFG->enablewsdocumentation) { @@ -6445,7 +6445,7 @@ class admin_setting_webservicesoverview extends admin_setting { /// 1. Enable Web Services $row = array(); - $url = new moodle_url("/admin/search.php?query=Enable+web+services"); + $url = new moodle_url("/admin/search.php?query=enablewebservices"); $row[0] = "1. "."".get_string('enablews', 'webservice').""; $status = ''.get_string('no').''; //should never happens as this page should only be seen once web service are activated if ($CFG->enablewebservices) { @@ -6473,10 +6473,10 @@ class admin_setting_webservicesoverview extends admin_setting { $table->data[] = $row; - /// 3. Create a web service + /// 3. Select a web service $row = array(); - $url = new moodle_url("/admin/webservice/service.php?id=0"); - $row[0] = "3. "."".get_string('createservice', 'webservice').""; + $url = new moodle_url("/admin/settings.php?section=externalservices"); + $row[0] = "3. "."".get_string('selectservice', 'webservice').""; $row[1] = ""; $row[2] = get_string('createserviceforusersdescription', 'webservice'); $table->data[] = $row;