MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ require_once('export_form.php');
|
||||
// database ID
|
||||
$d = required_param('d', PARAM_INT);
|
||||
|
||||
$PAGE->set_url(new moodle_url($CFG->wwwroot.'/mod/data/export.php', array('d'=>$d)));
|
||||
$PAGE->set_url('/mod/data/export.php', array('d'=>$d));
|
||||
|
||||
if (! $data = $DB->get_record('data', array('id'=>$d))) {
|
||||
print_error('wrongdataid', 'data');
|
||||
|
||||
Reference in New Issue
Block a user