Bug 3797, second part of the patch, extending output_html_with_http_headers to take a status parameter (optional)

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Chris Cormack 2009-11-20 14:50:02 +13:00 committed by Galen Charlton
parent 434ab8162f
commit 87ff46ba67

View file

@ -458,9 +458,9 @@ sub output_with_http_headers($$$$;$) {
print $query->header($options), $data;
}
sub output_html_with_http_headers ($$$) {
my ( $query, $cookie, $data ) = @_;
output_with_http_headers( $query, $cookie, $data, 'html' );
sub output_html_with_http_headers ($$$;$) {
my ( $query, $cookie, $data, $status ) = @_;
output_with_http_headers( $query, $cookie, $data, 'html', $status );
}
sub is_ajax () {