Skip to content

Commit

Permalink
MDL-19820 Converted all print_footer() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 6, 2009
1 parent 9237e77 commit 9b59580
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions question/addquestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,5 @@
print_choose_qtype_to_add_form($hiddenparams);
print_box_end();

print_footer($COURSE);
?>
echo $OUTPUT->footer();
?>
2 changes: 1 addition & 1 deletion question/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,5 @@
// display the user interface
$qcobject->display_user_interface();
}
print_footer($COURSE);
echo $OUTPUT->footer();
?>
2 changes: 1 addition & 1 deletion question/contextmove.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,5 @@
print_box(get_string('movingcategorynofiles', 'question', $cattomove), 'boxwidthnarrow boxaligncenter generalbox');
}
$contextmoveform->display();
print_footer($COURSE);
echo $OUTPUT->footer();
?>
2 changes: 1 addition & 1 deletion question/contextmoveq.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,5 @@
print_box(get_string('movingquestionsnofiles', 'question', $questionsstr), 'boxwidthnarrow boxaligncenter generalbox');
}
$contextmoveform->display();
print_footer($COURSE);
echo $OUTPUT->footer();
?>
2 changes: 1 addition & 1 deletion question/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@
$pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'], $pagevars['showquestiontext']);
echo "</div>\n";

print_footer($COURSE);
echo $OUTPUT->footer();
?>
4 changes: 2 additions & 2 deletions question/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
}

print_continue('edit.php?' . $thispageurl->get_query_string());
print_footer($COURSE);
echo $OUTPUT->footer();
exit;
}

Expand All @@ -132,5 +132,5 @@

$export_form->display();

print_footer($COURSE);
echo $OUTPUT->footer();
?>
4 changes: 2 additions & 2 deletions question/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -161,6 +161,6 @@

/// Print upload form
$import_form->display();
print_footer($COURSE);
echo $OUTPUT->footer();

?>
2 changes: 1 addition & 1 deletion question/preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,5 @@
get_string('closepreview', 'quiz') . "\" />";
echo '</div>';
echo '</form>';
print_footer();
echo $OUTPUT->footer();
?>
2 changes: 1 addition & 1 deletion question/question.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,6 @@
// 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();
}
?>
4 changes: 2 additions & 2 deletions question/type/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function get_heading($adding = false){
* 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.

Expand Down Expand Up @@ -368,7 +368,7 @@ function save_question($question, $form, $course) {
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;
}

Expand Down

0 comments on commit 9b59580

Please sign in to comment.