From: jamiesensei Date: Wed, 10 Jan 2007 06:40:42 +0000 (+0000) Subject: got rid of 'Changes Saved' message before redirect. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=87391656a38d8c02d9b5d20ba9b686b05c9780c6;p=moodle.git got rid of 'Changes Saved' message before redirect. --- diff --git a/question/question.php b/question/question.php index 57f283864f..bf957bc095 100644 --- a/question/question.php +++ b/question/question.php @@ -17,7 +17,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU Public License * @package question *//** */ - + require_once(dirname(__FILE__) . '/../config.php'); require_once('editlib.php'); // NOTE - is this correct? This is just about editing screens? require_once($CFG->libdir . '/filelib.php'); @@ -27,9 +27,9 @@ $qtype = optional_param('qtype', '', PARAM_FILE); $category = optional_param('category', 0, PARAM_INT); $inpopup = optional_param('inpopup', 0, PARAM_BOOL); - + $CFG->pagepath = 'question/type/'.$qtype; - + // rqp questions set the type to rqp_nn where nn is the rqp_type id if (substr($qtype, 0, 4) == 'rqp_') { @@ -260,7 +260,7 @@ close_window(3); } else { echo ''; - redirect($SESSION->returnurl, $strsaved); + redirect($SESSION->returnurl); } } }