Skip to content

Commit

Permalink
MDL-19794 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 653468d commit d60c112
Show file tree
Hide file tree
Showing 28 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion course/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,5 +446,5 @@

print_course_search();

print_footer();
echo $OUTPUT->footer();

4 changes: 2 additions & 2 deletions course/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"delete.php?id=$course->id&delete=".md5($course->timemodified)."&sesskey=".sesskey(),
"category.php?id=$course->category");

print_footer();
echo $OUTPUT->footer();
exit;
}

Expand Down Expand Up @@ -81,6 +81,6 @@

print_continue("category.php?id=$course->category");

print_footer();
echo $OUTPUT->footer();

?>
2 changes: 1 addition & 1 deletion course/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,6 @@

$editform->display();

print_footer($course);
echo $OUTPUT->footer();

?>
2 changes: 1 addition & 1 deletion course/editcategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@

$mform->display();

print_footer();
echo $OUTPUT->footer();
?>
2 changes: 1 addition & 1 deletion course/editsection.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@

print_heading_with_help($strsummaryof, 'summaries');
$mform->display();
print_footer($course);
echo $OUTPUT->footer();


2 changes: 1 addition & 1 deletion course/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@
echo '</div>';
}

print_footer();
echo $OUTPUT->footer();
?>
2 changes: 1 addition & 1 deletion course/import/activities/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@
print_header("$course->shortname: $strimportactivities", $course->fullname, $navigation);
require_once('mod.php');

print_footer();
echo $OUTPUT->footer();
?>
2 changes: 1 addition & 1 deletion course/import/groups/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
/// Print the form
require('mod.php');

print_footer($course);
echo $OUTPUT->footer();

function my_file_get_contents($filename, $use_include_path = 0) {
/// Returns the file as one big long string
Expand Down
2 changes: 1 addition & 1 deletion course/importstudents.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@

print_simple_box_end();

print_footer();
echo $OUTPUT->footer();

?>
2 changes: 1 addition & 1 deletion course/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@

echo $OUTPUT->close_window_button();

print_footer();
echo $OUTPUT->footer();

?>
8 changes: 4 additions & 4 deletions course/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ function build_logs_array($course, $user=0, $date=0, $order="l.time ASC", $limit
function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $perpage=100,
$url="", $modname="", $modid=0, $modaction="", $groupid=0) {

global $CFG, $DB;
global $CFG, $DB, $OUTPUT;

if (!$logs = build_logs_array($course, $user, $date, $order, $page*$perpage, $perpage,
$modname, $modid, $modaction, $groupid)) {
notify("No logs found!");
print_footer($course);
echo $OUTPUT->footer();
exit;
}

Expand Down Expand Up @@ -391,12 +391,12 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
function print_mnet_log($hostid, $course, $user=0, $date=0, $order="l.time ASC", $page=0, $perpage=100,
$url="", $modname="", $modid=0, $modaction="", $groupid=0) {

global $CFG, $DB;
global $CFG, $DB, $OUTPUT;

if (!$logs = build_mnet_logs_array($hostid, $course, $user, $date, $order, $page*$perpage, $perpage,
$modname, $modid, $modaction, $groupid)) {
notify("No logs found!");
print_footer($course);
echo $OUTPUT->footer();
exit;
}

Expand Down
2 changes: 1 addition & 1 deletion course/mod.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
print_simple_box_start('center', '60%', '#FFAAAA', 20, 'noticebox');
notice_yesno($strdeletecheckfull, 'mod.php', $return, $optionsyes, $optionsno, 'post', 'get');
print_simple_box_end();
print_footer($course);
echo $OUTPUT->footer();

exit;
}
Expand Down
2 changes: 1 addition & 1 deletion course/modedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,5 +584,5 @@

print_heading_with_help($pageheading, 'mods', $module->name, $icon);
$mform->display();
print_footer($course);
echo $OUTPUT->footer();
}
2 changes: 1 addition & 1 deletion course/recent.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@

}

print_footer($course);
echo $OUTPUT->footer();

function compare_activities_by_time_desc($a, $b) {
// make sure the activities actually have a timestamp property
Expand Down
2 changes: 1 addition & 1 deletion course/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
}
}

print_footer();
echo $OUTPUT->footer();
?>
8 changes: 4 additions & 4 deletions course/report/log/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,21 @@
if (!print_log_csv($course, $user, $date, 'l.time DESC', $modname,
$modid, $modaction, $group)) {
notify("No logs found!");
print_footer($course);
echo $OUTPUT->footer();
}
exit;
case 'downloadasods':
if (!print_log_ods($course, $user, $date, 'l.time DESC', $modname,
$modid, $modaction, $group)) {
notify("No logs found!");
print_footer($course);
echo $OUTPUT->footer();
}
exit;
case 'downloadasexcel':
if (!print_log_xls($course, $user, $date, 'l.time DESC', $modname,
$modid, $modaction, $group)) {
notify("No logs found!");
print_footer($course);
echo $OUTPUT->footer();
}
exit;
}
Expand All @@ -139,7 +139,7 @@
print_log_selector_form($course, $user, $date, $modname, $modid, $modaction, $group, $showcourses, $showusers, $logformat);
}

print_footer($course);
echo $OUTPUT->footer();

exit;
?>
2 changes: 1 addition & 1 deletion course/report/log/indexlive.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
link_to_popup_window('/course/report/log/live.php?id='. $course->id,'livelog', get_string('livelogs'), 500, 800);
echo '<div>';

print_footer($course);
echo $OUTPUT->footer();

?>
2 changes: 1 addition & 1 deletion course/report/outline/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
}
echo '</table>';

print_footer($course);
echo $OUTPUT->footer();


?>
2 changes: 1 addition & 1 deletion course/report/participation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,6 @@

}

print_footer();
echo $OUTPUT->footer();

?>
4 changes: 2 additions & 2 deletions course/report/progress/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function csv_quote($value) {
if(count($progress->users)==0) {
print '<p class="nousers">'.get_string('err_nousers','completion').'</p>';
print '<p><a href="'.$reportsurl.'">'.get_string('continue').'</a></p>';
print_footer($course);
echo $OUTPUT->footer();
exit;
}
print $pagingbar;
Expand Down Expand Up @@ -274,5 +274,5 @@ function csv_quote($value) {
<li><a href="index.php?course='.$course->id.'&amp;format=excelcsv">'.
get_string('excelcsvdownload','completion').'</a></li></ul>';

print_footer($course);
echo $OUTPUT->footer();
?>
2 changes: 1 addition & 1 deletion course/report/stats/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
}
}

print_footer();
echo $OUTPUT->footer();

?>
2 changes: 1 addition & 1 deletion course/request.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@
print_header($strtitle, $strtitle, build_navigation($strtitle), $requestform->focus());
echo $OUTPUT->heading($strtitle);
$requestform->display();
print_footer();
echo $OUTPUT->footer();

?>
4 changes: 2 additions & 2 deletions course/reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
print_table($table);

print_continue('view.php?id='.$course->id); // Back to course page
print_footer($course);
echo $OUTPUT->footer();
exit;
}
}
Expand All @@ -79,6 +79,6 @@
print_simple_box(get_string('resetinfo'), 'center', '60%');

$mform->display();
print_footer($course);
echo $OUTPUT->footer();

?>
4 changes: 2 additions & 2 deletions course/scales.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
echo text_to_html($scale->description);
print_simple_box_end();
echo $OUTPUT->close_window_button();
print_footer('empty');
echo $OUTPUT->footer();
exit;
}
}
Expand Down Expand Up @@ -95,6 +95,6 @@
}

echo $OUTPUT->close_window_button();
print_footer('empty');
echo $OUTPUT->footer();

?>
4 changes: 2 additions & 2 deletions course/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
echo "</p>";
echo "</center>";
print_simple_box_end();
print_footer();
echo $OUTPUT->footer();
exit;
}

Expand Down Expand Up @@ -360,7 +360,7 @@

print_course_search($search);

print_footer();
echo $OUTPUT->footer();

/**
* Print a list navigation bar
Expand Down
2 changes: 1 addition & 1 deletion course/unenrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@
$_SERVER['HTTP_REFERER']);
}

print_footer($course);
echo $OUTPUT->footer();

?>
4 changes: 2 additions & 2 deletions course/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
if ($user->deleted) {
print_header();
echo $OUTPUT->heading(get_string('userdeleted'));
print_footer();
echo $OUTPUT->footer();
die;
}

Expand Down Expand Up @@ -330,7 +330,7 @@
}


print_footer($course);
echo $OUTPUT->footer();


function print_outline_row($mod, $instance, $result) {
Expand Down
2 changes: 1 addition & 1 deletion course/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,6 @@
}


print_footer();
echo $OUTPUT->footer();

?>

0 comments on commit d60c112

Please sign in to comment.