MDL-48004 question: prevent notices on import screen
authorDan Poltawski <dan@moodle.com>
Thu, 26 Nov 2015 14:53:15 +0000 (14:53 +0000)
committerDan Poltawski <dan@moodle.com>
Thu, 26 Nov 2015 15:02:36 +0000 (15:02 +0000)
If query params were not passed the page would previously display debug
notices as setting the $requirecourseid param to question_edit_setup()
was buggy.

question/import.php

index 7110e53..9904eca 100644 (file)
@@ -30,7 +30,7 @@ require_once($CFG->dirroot . '/question/import_form.php');
 require_once($CFG->dirroot . '/question/format.php');
 
 list($thispageurl, $contexts, $cmid, $cm, $module, $pagevars) =
-        question_edit_setup('import', '/question/import.php', false, false);
+        question_edit_setup('import', '/question/import.php');
 
 // get display strings
 $txt = new stdClass();