mnet MDL-21582 fix peer service page redirection with a moodle_url

This commit is contained in:
jerome mouneyrac 2010-02-11 08:26:46 +00:00
parent c044e281b5
commit e2c4313253

View file

@ -75,7 +75,8 @@ if ($formdata = $mform->get_data()) {
$DB->update_record('mnet_host2service', $host2service); $DB->update_record('mnet_host2service', $host2service);
} }
} }
redirect('/admin/mnet/services.php?hostid=' . $hostid, get_string('changessaved')); $redirecturl = new moodle_url('/admin/mnet/services.php?hostid=' . $hostid);
redirect($redirecturl, get_string('changessaved'));
} }
admin_externalpage_print_header(); admin_externalpage_print_header();