Skip to content

Commit

Permalink
MDL-66847 webservice: Correct breadcrumb + title for ws documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Feb 11, 2020
1 parent 4e90332 commit c3fe185
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions lang/en/deprecated.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,4 @@ global,core_calendar
globalevent,core_calendar
globalevents,core_calendar
eventtypeglobal,core_calendar
documentation,core_webservice
4 changes: 3 additions & 1 deletion lang/en/webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
$string['disabledwarning'] = 'All web service protocols are disabled. The "Enable web services" setting can be found in Advanced features.';
$string['doc'] = 'Documentation';
$string['docaccessrefused'] = 'You are not allowed to see the documentation for this token';
$string['documentation'] = 'web service documentation';
$string['downloadfiles'] = 'Can download files';
$string['downloadfiles_help'] = 'If enabled, any user can download files with their security keys. Of course they are restricted to the files they are allowed to download in the site.';
$string['editaservice'] = 'Edit service';
Expand Down Expand Up @@ -241,3 +240,6 @@
$string['wsdocumentationlogin'] = 'or enter your web service username and password:';
$string['wspassword'] = 'Web service password';
$string['wsusername'] = 'Web service username';

// Deprecated since Moodle 3.9.
$string['documentation'] = 'web service documentation';
9 changes: 5 additions & 4 deletions webservice/wsdoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,18 @@
// PAGE settings
$PAGE->set_context($usercontext);
$PAGE->set_url('/user/wsdoc.php');
$PAGE->set_title(get_string('documentation', 'webservice'));
$PAGE->set_heading(get_string('documentation', 'webservice'));
$PAGE->set_title(get_string('wsdocumentation', 'webservice'));
$PAGE->set_heading(get_string('wsdocumentation', 'webservice'));
$PAGE->set_pagelayout('standard');

// nav bar
$PAGE->navbar->ignore_active(true);
$PAGE->navbar->add(get_string('usercurrentsettings'));
$PAGE->navbar->add(get_string('preferences'), new moodle_url('/user/preferences.php'));
$PAGE->navbar->add(get_string('useraccount'));
$PAGE->navbar->add(get_string('securitykeys', 'webservice'),
new moodle_url('/user/managetoken.php',
array('id' => $tokenid, 'sesskey' => sesskey())));
$PAGE->navbar->add(get_string('documentation', 'webservice'));
$PAGE->navbar->add(get_string('wsdocumentation', 'webservice'));

// check web service are enabled
if (empty($CFG->enablewsdocumentation)) {
Expand Down

0 comments on commit c3fe185

Please sign in to comment.