MDL-19820 Converted all print_footer() calls

This commit is contained in:
nicolasconnault 2009-08-06 14:19:16 +00:00
parent 9237e77678
commit 9b59580b36
10 changed files with 14 additions and 14 deletions

View File

@ -100,5 +100,5 @@ print_box_start('generalbox boxwidthnormal boxaligncenter', 'chooseqtypebox');
print_choose_qtype_to_add_form($hiddenparams);
print_box_end();
print_footer($COURSE);
?>
echo $OUTPUT->footer();
?>

View File

@ -127,5 +127,5 @@
// display the user interface
$qcobject->display_user_interface();
}
print_footer($COURSE);
echo $OUTPUT->footer();
?>

View File

@ -240,5 +240,5 @@
print_box(get_string('movingcategorynofiles', 'question', $cattomove), 'boxwidthnarrow boxaligncenter generalbox');
}
$contextmoveform->display();
print_footer($COURSE);
echo $OUTPUT->footer();
?>

View File

@ -240,5 +240,5 @@ if (count($urls)){
print_box(get_string('movingquestionsnofiles', 'question', $questionsstr), 'boxwidthnarrow boxaligncenter generalbox');
}
$contextmoveform->display();
print_footer($COURSE);
echo $OUTPUT->footer();
?>

View File

@ -77,5 +77,5 @@
$pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'], $pagevars['showquestiontext']);
echo "</div>\n";
print_footer($COURSE);
echo $OUTPUT->footer();
?>

View File

@ -123,7 +123,7 @@
}
print_continue('edit.php?' . $thispageurl->get_query_string());
print_footer($COURSE);
echo $OUTPUT->footer();
exit;
}
@ -132,5 +132,5 @@
$export_form->display();
print_footer($COURSE);
echo $OUTPUT->footer();
?>

View File

@ -152,7 +152,7 @@
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;
}
}
@ -161,6 +161,6 @@
/// Print upload form
$import_form->display();
print_footer($COURSE);
echo $OUTPUT->footer();
?>

View File

@ -241,5 +241,5 @@
get_string('closepreview', 'quiz') . "\" />";
echo '</div>';
echo '</form>';
print_footer();
echo $OUTPUT->footer();
?>

View File

@ -273,6 +273,6 @@ if ($mform->is_cancelled()){
// 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();
}
?>

View File

@ -291,7 +291,7 @@ class default_questiontype {
* 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.
@ -368,7 +368,7 @@ class default_questiontype {
if (!empty($result->noticeyesno)) {
notice_yesno($result->noticeyesno, "question.php?id=$question->id&amp;courseid={$course->id}",
"edit.php?courseid={$course->id}");
print_footer($course);
echo $OUTPUT->footer();
exit;
}