MDL-21233 simplifying moodle_url->out() api

This commit is contained in:
Petr Skoda
2010-01-17 09:18:11 +00:00
parent a4a04ada39
commit 340d461269
10 changed files with 15 additions and 13 deletions
+2 -1
View File
@@ -800,8 +800,9 @@ class question_bank_view {
}
// Create the url of the new question page to forward to.
// TODO: it is sloppy to pass around full URLs through page parameters and some servers do not like that
$this->editquestionurl = new moodle_url("$CFG->wwwroot/question/question.php",
array('returnurl' => urlencode($pageurl->out(false, array(), false))));
array('returnurl' => urlencode($pageurl->out_raw())));
if ($cm !== null){
$this->editquestionurl->param('cmid', $cm->id);
} else {