/// Ensure we redirect back to the category the question is being saved into.
$returnurl = new moodle_url($returnurl);
$returnurl->param('category', $fromform->category);
- $returnurl = $returnurl->out();
+ $returnurl = $returnurl->out(false, array(), false);
/// Call the appropriate method.
if ($movecontext) {
} else {
$movecontexturl->param('courseid', $COURSE->id);
}
- redirect($movecontexturl->out());
+ redirect($movecontexturl);
}
}
if($appendqnumstring) {
$nexturl->params(array($appendqnumstring=>($question->id), "sesskey"=>sesskey(), "cmid"=>$cmid));
}
- redirect($nexturl->out());
+ redirect($nexturl);
}
} else {
$nexturlparams = array('returnurl'=>$returnurl, 'appendqnumstring'=>$appendqnumstring);
} else {
$nexturl->param('courseid', $COURSE->id);
}
- redirect($nexturl->out());
+ redirect($nexturl);
}
} else {