questions MDL-20276 Fixed minor issue with URL handling within the paging bar for the question bank
This commit is contained in:
@@ -33,6 +33,27 @@
|
||||
require_once("../config.php");
|
||||
require_once("editlib.php");
|
||||
|
||||
$url = new moodle_url($CFG->wwwroot.'/question/edit.php');
|
||||
if (($lastchanged = optional_param('lastchanged', 0, PARAM_INT)) !== 0) {
|
||||
$url->param('lastchanged', $lastchanged);
|
||||
}
|
||||
if (($category = optional_param('category', 0, PARAM_TEXT)) !== 0) {
|
||||
$url->param('category', $category);
|
||||
}
|
||||
if (($qpage = optional_param('qpage', 0, PARAM_INT)) !== 0) {
|
||||
$url->param('qpage', $qpage);
|
||||
}
|
||||
if (($cat = optional_param('cat', 0, PARAM_TEXT)) !== 0) {
|
||||
$url->param('cat', $cat);
|
||||
}
|
||||
if (($courseid = optional_param('courseid', 0, PARAM_INT)) !== 0) {
|
||||
$url->param('courseid', $courseid);
|
||||
}
|
||||
if (($returnurl = optional_param('returnurl', 0, PARAM_INT)) !== 0) {
|
||||
$url->param('returnurl', $returnurl);
|
||||
}
|
||||
$PAGE->set_url($url);
|
||||
|
||||
list($thispageurl, $contexts, $cmid, $cm, $module, $pagevars) = question_edit_setup('questions');
|
||||
$questionbank = new question_bank_view($contexts, $thispageurl, $COURSE, $cm);
|
||||
$questionbank->process_actions();
|
||||
|
||||
Reference in New Issue
Block a user