question MDL-19820 Updated print_header and build_navigation to OUTPUT and PAGE equiv...
[moodle.git] / question / preview.php
index d02394e..d1d583d 100644 (file)
 
     $strpreview = get_string('preview', 'quiz').' '.format_string($questions[$id]->name);
     $questionlist = array($id);
-    $headtags = get_html_head_contributions($questionlist, $questions, $states[$historylength]);
-    print_header($strpreview, '', '', '', $headtags);
+    get_html_head_contributions($questionlist, $questions, $states[$historylength]);
+    $PAGE->set_title($strpreview);
+    echo $OUTPUT->header();
     echo $OUTPUT->heading($strpreview);
 
     if (!empty($quizid)) {