From: nicolasconnault Date: Thu, 6 Aug 2009 14:14:39 +0000 (+0000) Subject: MDL-19806 Converted all print_footer() calls X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7b30ba8b684f3ceddad46fa4b8f0bc499bdb488a;p=moodle.git MDL-19806 Converted all print_footer() calls --- diff --git a/mod/data/comment.php b/mod/data/comment.php index 413957e152..e211cbde5c 100755 --- a/mod/data/comment.php +++ b/mod/data/comment.php @@ -117,7 +117,7 @@ 'comment.php?rid='.$record->id.'&commentid='.$comment->id.'&page='.$page. '&sesskey='.sesskey().'&mode=delete&confirm=1', 'view.php?rid='.$record->id.'&page='.$page); - print_footer(); + echo $OUTPUT->footer(); } die; break; @@ -126,7 +126,7 @@ print_header(); data_print_comments($data, $record, $page, $mform); - print_footer(); + echo $OUTPUT->footer(); ?> diff --git a/mod/data/edit.php b/mod/data/edit.php index 981ddb1f19..dc6af0c908 100755 --- a/mod/data/edit.php +++ b/mod/data/edit.php @@ -187,7 +187,7 @@ if (data_atmaxentries($data) and !has_capability('mod/data:manageentries',$context)){ notify (get_string('atmaxentry','data')); - print_footer($course); + echo $OUTPUT->footer(); exit; } @@ -347,5 +347,5 @@ $field->print_after_form(); } - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/data/export.php b/mod/data/export.php index 19b11c85d7..915b2821ad 100644 --- a/mod/data/export.php +++ b/mod/data/export.php @@ -67,7 +67,7 @@ if($mform->is_cancelled()) { $currenttab = 'export'; include('tabs.php'); $mform->display(); - print_footer(); + echo $OUTPUT->footer(); die; } diff --git a/mod/data/field.php b/mod/data/field.php index b02673394c..cd20df17ff 100755 --- a/mod/data/field.php +++ b/mod/data/field.php @@ -188,7 +188,7 @@ 'field.php?d='.$data->id.'&mode=delete&fid='.$fid.'&sesskey='.sesskey().'&confirm=1', 'field.php?d='.$data->id); - print_footer($course); + echo $OUTPUT->footer(); exit; } } @@ -334,7 +334,7 @@ } /// Finish the page - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/data/import.php b/mod/data/import.php index b417f9a7ae..311aa9c10a 100755 --- a/mod/data/import.php +++ b/mod/data/import.php @@ -178,7 +178,7 @@ /// Finish the page - print_footer($course); + echo $OUTPUT->footer(); diff --git a/mod/data/index.php b/mod/data/index.php index 93e9c2a145..399f79624b 100755 --- a/mod/data/index.php +++ b/mod/data/index.php @@ -138,6 +138,6 @@ echo "
"; print_table($table); - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/data/preset.php b/mod/data/preset.php index 3c35da69af..15bba9c9ea 100644 --- a/mod/data/preset.php +++ b/mod/data/preset.php @@ -100,7 +100,7 @@ switch ($action) { $optionsno = new object(); $optionsno->d = $data->id; notice_yesno($strwarning, 'preset.php', 'preset.php', $options, $optionsno, 'post', 'get'); - print_footer($course); + echo $OUTPUT->footer(); exit(0); break; @@ -135,7 +135,7 @@ switch ($action) { $pimporter = new PresetImporter($course, $cm, $data, $userid, $shortname); $pimporter->import_options(); - print_footer($course); + echo $OUTPUT->footer(); exit(0); break; @@ -159,7 +159,7 @@ switch ($action) { $pimporter = new PresetImporter($course, $cm, $data, -$USER->id, $shortname); $pimporter->import_options(); - print_footer($course); + echo $OUTPUT->footer(); exit(0); break; @@ -219,7 +219,7 @@ switch ($action) { echo ''; echo ''; echo ''; - print_footer($course); + echo $OUTPUT->footer(); exit(0); break; @@ -254,7 +254,7 @@ switch ($action) { echo ''; echo ''; echo ''; - print_footer($course); + echo $OUTPUT->footer(); exit(0); break; } @@ -369,7 +369,7 @@ echo ''; echo ''; echo ''; -print_footer($course); +echo $OUTPUT->footer(); exit(0); ################################################################################ diff --git a/mod/data/report.php b/mod/data/report.php index 6108be1bbd..a255b9e93e 100755 --- a/mod/data/report.php +++ b/mod/data/report.php @@ -77,5 +77,5 @@ } echo $OUTPUT->close_window_button(); - print_footer('none'); + echo $OUTPUT->footer(); ?> diff --git a/mod/data/templates.php b/mod/data/templates.php index df07eadbda..4c2e046300 100755 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -288,5 +288,5 @@ echo ''; /// Finish the page - print_footer($course); + echo $OUTPUT->footer(); ?> diff --git a/mod/data/view.php b/mod/data/view.php index f7b019bb45..ebef06d34a 100755 --- a/mod/data/view.php +++ b/mod/data/view.php @@ -345,7 +345,7 @@ $records[] = $deleterecord; echo data_print_template('singletemplate', $records, $data, '', 0, true); - print_footer($course); + echo $OUTPUT->footer(); exit; } } @@ -668,5 +668,5 @@ $completion=new completion_info($course); $completion->set_module_viewed($cm); - print_footer($course); + echo $OUTPUT->footer(); ?>