Merge branch 'MDL-66847-37' of git://github.com/lucaboesch/moodle into MOODLE_37_STABLE
This commit is contained in:
@@ -35,17 +35,18 @@ $tokenid = required_param('id', PARAM_INT);
|
||||
// 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)) {
|
||||
|
||||
Reference in New Issue
Block a user