MDL-28074 question preview should set context/course/cm properly.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 29 Jun 2011 13:39:16 +0000 (14:39 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 29 Jun 2011 20:25:56 +0000 (21:25 +0100)
commit56a4ae4673c7659ac99c46c99d5620831f229917
tree266a4cb51e77056342742384f6157f748368615c
parent7fde489daee17d91f9080c2422eba854761d6597
MDL-28074 question preview should set context/course/cm properly.

1. We need this so that, for example, when previewing a question from
the quiz editing page, the preview uses the filter settings, theme and
language set for that quiz and course.
lib/questionlib.php
mod/quiz/locallib.php
question/editlib.php
question/preview.php
question/previewlib.php