print_choose_qtype_to_add_form($hiddenparams);
print_box_end();
-print_footer($COURSE);
-?>
\ No newline at end of file
+echo $OUTPUT->footer();
+?>
// display the user interface
$qcobject->display_user_interface();
}
- print_footer($COURSE);
+ echo $OUTPUT->footer();
?>
print_box(get_string('movingcategorynofiles', 'question', $cattomove), 'boxwidthnarrow boxaligncenter generalbox');
}
$contextmoveform->display();
- print_footer($COURSE);
+ echo $OUTPUT->footer();
?>
print_box(get_string('movingquestionsnofiles', 'question', $questionsstr), 'boxwidthnarrow boxaligncenter generalbox');
}
$contextmoveform->display();
-print_footer($COURSE);
+echo $OUTPUT->footer();
?>
$pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'], $pagevars['showquestiontext']);
echo "</div>\n";
- print_footer($COURSE);
+ echo $OUTPUT->footer();
?>
}
print_continue('edit.php?' . $thispageurl->get_query_string());
- print_footer($COURSE);
+ echo $OUTPUT->footer();
exit;
}
$export_form->display();
- print_footer($COURSE);
+ echo $OUTPUT->footer();
?>
echo "<hr />";
print_continue("edit.php?".($thispageurl->get_query_string(array('category'=>"{$qformat->category->id},{$qformat->category->contextid}"))));
- print_footer($COURSE);
+ echo $OUTPUT->footer();
exit;
}
}
/// Print upload form
$import_form->display();
- print_footer($COURSE);
+ echo $OUTPUT->footer();
?>
get_string('closepreview', 'quiz') . "\" />";
echo '</div>';
echo '</form>';
- print_footer();
+ echo $OUTPUT->footer();
?>
// Display a heading, question editing form and possibly some extra content needed for
// for this question type.
$QTYPES[$question->qtype]->display_question_editing_page($mform, $question, $wizardnow);
- print_footer($COURSE);
+ echo $OUTPUT->footer();
}
?>
* is itself an object, shown next to the form fields. (I don't think this is accurate any more.)
*/
function save_question($question, $form, $course) {
- global $USER, $DB;
+ global $USER, $DB, $OUTPUT;
// This default implementation is suitable for most
// question types.
if (!empty($result->noticeyesno)) {
notice_yesno($result->noticeyesno, "question.php?id=$question->id&courseid={$course->id}",
"edit.php?courseid={$course->id}");
- print_footer($course);
+ echo $OUTPUT->footer();
exit;
}