Skip to content

Commit

Permalink
MDL-48004 question: prevent notices on import screen
Browse files Browse the repository at this point in the history
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 1199aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/import.php
Expand Up @@ -30,7 +30,7 @@
require_once($CFG->dirroot . '/question/format.php'); require_once($CFG->dirroot . '/question/format.php');


list($thispageurl, $contexts, $cmid, $cm, $module, $pagevars) = 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 // get display strings
$txt = new stdClass(); $txt = new stdClass();
Expand Down

0 comments on commit 1199aab

Please sign in to comment.