Skip to content

Commit

Permalink
fixup! MDL-79844 core_ltix: update refs in moved site admin files
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Jun 6, 2024
1 parent f2e02ae commit f95e628
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ltix/classes/output/tool_configure_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function export_for_template(renderer_base $output) {

$url = new moodle_url('/ltix/typessettings.php', array('sesskey' => sesskey(), 'returnto' => 'toolconfigure'));
$data->configuremanualurl = $url->out();
$url = new moodle_url('/admin/settings.php?section=ltisettings');
$url = new moodle_url('/admin/settings.php?section=ltixsettings');
$data->managetoolsurl = $url->out();
$url = new moodle_url('/ltix/toolproxies.php');
$data->managetoolproxiesurl = $url->out();
Expand Down
2 changes: 1 addition & 1 deletion ltix/templates/tool_configure.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Example context (json):
{
"configuremanualurl":"https://some.tool.example/ltix/typessettings.php?sesskey=OKl37bHflL&returnto=toolconfigure",
"managetoolsurl":"https://some.tool.example/admin/settings.php?section=ltisettings",
"managetoolsurl":"https://some.tool.example/admin/settings.php?section=ltixsettings",
"managetoolproxiesurl":"https://some.tool.example/ltix/toolproxies.php"
}

Expand Down
2 changes: 1 addition & 1 deletion ltix/toolssettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
$PAGE->set_title(get_string('toolsetup', 'core_ltix'));
$PAGE->set_primary_active_tab('siteadminnode');
$PAGE->set_secondary_active_tab('siteadminnode');
$PAGE->navbar->add(get_string('lti_administration', 'core_ltix'), $CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=ltisettings');
$PAGE->navbar->add(get_string('lti_administration', 'core_ltix'), $CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=ltixsettings');

echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('toolsetup', 'core_ltix'));
Expand Down
2 changes: 1 addition & 1 deletion ltix/typessettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

admin_externalpage_setup('ltixtoolconfigure'); // Hacky solution for printing the admin page.

$redirect = "$CFG->wwwroot/$CFG->admin/settings.php?section=ltisettings&tab={$tab}";
$redirect = "$CFG->wwwroot/$CFG->admin/settings.php?section=ltixsettings&tab={$tab}";
if (!empty($returnurl)) {
$redirect = $returnurl;
}
Expand Down

0 comments on commit f95e628

Please sign in to comment.