Permalink
Browse files

MDL-32921 lti : reused a moodle_url.

  • Loading branch information...
1 parent 184287f commit ca91bdcdf77e32a54882f8dbd778c0ca10704315 @nebgor nebgor committed May 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/lti/typessettings.php
@@ -63,8 +63,8 @@
// 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 @@
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));

0 comments on commit ca91bdc

Please sign in to comment.