quiz & qbank MDL-24453 fix all the ways you can edit a question, so that that returnurl paramterer acutally works.

I hope. Please test thoroughly.
This commit is contained in:
Tim Hunt
2010-10-18 15:28:59 +00:00
parent 3a7507d081
commit fb6dcdab11
7 changed files with 53 additions and 47 deletions
+1 -2
View File
@@ -801,8 +801,7 @@ class question_bank_view {
}
// Create the url of the new question page to forward to.
$returnurl = $pageurl->out(false);
$returnurl = str_replace($CFG->wwwroot . '/', '', $returnurl);
$returnurl = str_replace($CFG->wwwroot, '', $pageurl->out(false));
$this->editquestionurl = new moodle_url('/question/question.php',
array('returnurl' => $returnurl));
if ($cm !== null){