Skip to content

Commit

Permalink
MDL-19808 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 867847e commit 396fb91
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion mod/forum/discuss.php
Expand Up @@ -240,7 +240,7 @@
$canrate = has_capability('mod/forum:rate', $modcontext);
forum_print_discussion($course, $cm, $forum, $discussion, $post, $displaymode, $canreply, $canrate);

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


?>
2 changes: 1 addition & 1 deletion mod/forum/index.php
Expand Up @@ -402,6 +402,6 @@
print_table($learningtable);
}

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

?>
2 changes: 1 addition & 1 deletion mod/forum/markposts.php
Expand Up @@ -37,7 +37,7 @@
print_header($course->shortname, $course->fullname, $navigation, '', '', true, "", navmenu($course, $cm));
notice_yesno(get_string('noguesttracking', 'forum').'<br /><br />'.get_string('liketologin'),
get_login_url(), $returnto);
print_footer($course);
echo $OUTPUT->footer();
exit;
}

Expand Down
8 changes: 4 additions & 4 deletions mod/forum/post.php
Expand Up @@ -55,7 +55,7 @@

notice_yesno(get_string('noguestpost', 'forum').'<br /><br />'.get_string('liketologin'),
get_login_url(), get_referer(false));
print_footer($course);
echo $OUTPUT->footer();
exit;
}

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

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


Expand Down Expand Up @@ -418,7 +418,7 @@
forum_print_post($post, $discussion, $forum, $cm, $course, false, false, false);
echo '</center>';
}
print_footer($course);
echo $OUTPUT->footer();
die;
} else {
print_error('unknowaction');
Expand Down Expand Up @@ -801,7 +801,7 @@

$mform_post->display();

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


?>
2 changes: 1 addition & 1 deletion mod/forum/report.php
Expand Up @@ -82,5 +82,5 @@
}

echo $OUTPUT->close_window_button();
print_footer('none');
echo $OUTPUT->footer();
?>
6 changes: 3 additions & 3 deletions mod/forum/search.php
Expand Up @@ -108,7 +108,7 @@
"", "", "&nbsp;", navmenu($course));

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

Expand All @@ -135,7 +135,7 @@

forum_print_big_search_form($course);

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

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

print_paging_bar($totalcount, $page, $perpage, "search.php?search=".urlencode($search)."&amp;id=$course->id&amp;perpage=$perpage&amp;");

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



Expand Down
2 changes: 1 addition & 1 deletion mod/forum/subscribe.php
Expand Up @@ -52,7 +52,7 @@

notice_yesno(get_string('noguestsubscribe', 'forum').'<br /><br />'.get_string('liketologin'),
get_login_url(), $_SERVER['HTTP_REFERER']);
print_footer($course);
echo $OUTPUT->footer();
exit;
}

Expand Down
4 changes: 2 additions & 2 deletions mod/forum/subscribers.php
Expand Up @@ -77,7 +77,7 @@
echo "</table>";
}

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

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

print_simple_box_end();

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

?>
6 changes: 3 additions & 3 deletions mod/forum/unsubscribeall.php
Expand Up @@ -26,7 +26,7 @@
$DB->set_field('user', 'autosubscribe', 0, array('id'=>$USER->id));
print_box(get_string('unsubscribealldone', 'forum'));
print_continue($return);
print_footer();
echo $OUTPUT->footer();
die;

} else {
Expand All @@ -35,13 +35,13 @@
if ($a) {
$msg = get_string('unsubscribeallconfirm', 'forum', $a);
notice_yesno($msg, 'unsubscribeall.php', $return, array('confirm'=>1, 'sesskey'=>sesskey()), NULL, 'post', 'get');
print_footer();
echo $OUTPUT->footer();
die;

} else {
print_box(get_string('unsubscribeallempty', 'forum'));
print_continue($return);
print_footer();
echo $OUTPUT->footer();
die;
}
}
4 changes: 2 additions & 2 deletions mod/forum/user.php
Expand Up @@ -37,7 +37,7 @@
if ($user->deleted) {
print_header();
echo $OUTPUT->heading(get_string('userdeleted'));
print_footer($course);
echo $OUTPUT->footer();
die;
}

Expand Down Expand Up @@ -175,6 +175,6 @@
}
}
echo '</div>';
print_footer($course);
echo $OUTPUT->footer();

?>

0 comments on commit 396fb91

Please sign in to comment.