mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-32921 lti : reused a moodle_url.
This commit is contained in:
parent
184287f0ce
commit
ca91bdcdf7
@ -63,8 +63,8 @@ $definenew = optional_param('definenew', null, PARAM_INT);
|
||||
|
||||
// no guest autologin
|
||||
require_login(0, false);
|
||||
$url = new moodle_url('/mod/lti/typessettings.php');
|
||||
$PAGE->set_url($url);
|
||||
$pageurl = new moodle_url('/mod/lti/typessettings.php');
|
||||
$PAGE->set_url($pageurl);
|
||||
|
||||
admin_externalpage_setup('managemodules'); // Hacky solution for printing the admin page
|
||||
|
||||
@ -178,7 +178,7 @@ if (empty($SITE->fullname)) {
|
||||
echo $OUTPUT->heading(get_string('toolsetup', 'lti'));
|
||||
echo $OUTPUT->box_start('generalbox');
|
||||
if ($action == 'add') {
|
||||
$form = new mod_lti_edit_types_form(new moodle_url('/mod/lti/typessettings.php'), (object)array('isadmin' => true));
|
||||
$form = new mod_lti_edit_types_form($pageurl, (object)array('isadmin' => true));
|
||||
$form->display();
|
||||
} else if ($action == 'update') {
|
||||
$form = new mod_lti_edit_types_form('typessettings.php?id='.$id, (object)array('isadmin' => true));
|
||||
|
Loading…
x
Reference in New Issue
Block a user