mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
removed all session fromurl and returnurl stuff from question bank editing code. Returnurls are now passed as get/post params.
This commit is contained in:
parent
f86c2c84b1
commit
64eeaf4753
@ -72,7 +72,6 @@
|
||||
$quiz->grades = quiz_get_all_question_grades($quiz);
|
||||
}
|
||||
|
||||
$SESSION->returnurl = $FULLME;
|
||||
|
||||
/// Now, check for commands on this page and modify variables as necessary
|
||||
|
||||
|
@ -20,7 +20,6 @@
|
||||
}
|
||||
$context = get_context_instance(CONTEXT_COURSE, $courseid);
|
||||
|
||||
$SESSION->returnurl = $FULLME;
|
||||
|
||||
$streditingquestions = get_string('editquestions', "quiz");
|
||||
if ($cm!==null) {
|
||||
|
@ -425,9 +425,7 @@ function question_list($course, $pageurl, $categoryid, $cm = null,
|
||||
* @param moodle_url $pageurl object representing this pages url.
|
||||
*/
|
||||
function question_showbank($pageurl, $cm, $page, $perpage, $sortorder, $sortorderdecoded, $cat, $recurse, $showhidden, $showquestiontext){
|
||||
global $SESSION, $COURSE;
|
||||
|
||||
$SESSION->fromurl = $pageurl->out();
|
||||
global $COURSE;
|
||||
|
||||
/// Now, check for commands on this page and modify variables as necessary
|
||||
if (isset($_REQUEST['move']) and confirm_sesskey()) { /// Move selected questions to new category
|
||||
|
@ -14,9 +14,7 @@ require_once($CFG->libdir . '/filelib.php');
|
||||
require_once($CFG->libdir . '/formslib.php');
|
||||
|
||||
$returnurl = optional_param('returnurl', 0, PARAM_URL);
|
||||
if (!$returnurl && isset($SESSION->fromurl)) {
|
||||
$returnurl = $SESSION->fromurl;
|
||||
}
|
||||
|
||||
// Read URL parameters telling us which question to edit.
|
||||
$id = optional_param('id', 0, PARAM_INT); // question id
|
||||
$cmid = optional_param('cmid', 0, PARAM_INT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user