Permalink
Browse files

MDL-32921: Fixing an issue with adding LTI tool providers from the ad…

…min UI
  • Loading branch information...
scriby committed May 10, 2012
1 parent e16e230 commit bc2a92aedacbb798dc6049fa5fadc3c1f5c479e6
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/lti/typessettings.php
@@ -63,7 +63,7 @@
// no guest autologin
require_login(0, false);
-$url = new moodle_url('/mod/lti/typesettings.php');
+$url = new moodle_url('/mod/lti/typessettings.php');
$PAGE->set_url($url);
admin_externalpage_setup('managemodules'); // Hacky solution for printing the admin page
@@ -178,7 +178,7 @@
echo $OUTPUT->heading(get_string('toolsetup', 'lti'));
echo $OUTPUT->box_start('generalbox');
if ($action == 'add') {
- $form = new mod_lti_edit_types_form(null, (object)array('isadmin' => true));
+ $form = new mod_lti_edit_types_form(new moodle_url('/mod/lti/typessettings.php'), (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));

0 comments on commit bc2a92a

Please sign in to comment.