Permalink
Browse files

MDL-48004 question: prevent notices on import screen

If query params were not passed the page would previously display debug
notices as setting the $requirecourseid param to question_edit_setup()
was buggy.
  • Loading branch information...
danpoltawski committed Nov 26, 2015
1 parent b9c333f commit 1199aab2c1bde9e99bceae09ab1218c9f47a25a4
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/import.php
View
@@ -30,7 +30,7 @@
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();

0 comments on commit 1199aab

Please sign in to comment.