Permalink
Browse files

MDL-28160 question preview window uses wrong pagelayout in activity c…

…ontexts
  • Loading branch information...
1 parent 0529990 commit a5dd15e9211116ccca11f722bf80d38211e054de @timhunt timhunt committed with stronk7 Jul 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/preview.php
View
@@ -37,7 +37,6 @@
// Get and validate question id.
$id = required_param('id', PARAM_INT);
$question = question_bank::load_question($id);
-$PAGE->set_pagelayout('popup');
// Were we given a particular context to run the question in?
// This affects things like filter settings, or forced theme or language.
@@ -59,6 +58,7 @@
// Note that in the other cases, require_login will set the correct page context.
}
question_require_capability_on($question, 'use');
+$PAGE->set_pagelayout('popup');
// Get and validate display options.
$maxvariant = $question->get_num_variants();

0 comments on commit a5dd15e

Please sign in to comment.