From 7325369bf5f7ea3f3f50d0f716b9ddf417767623 Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 8 Dec 2006 00:12:44 +0000 Subject: - new function set_status_header (set http status code) - correction on recent/recent_by_child icons git-svn-id: http://piwigo.org/svn/trunk@1643 68402e56-0260-453c-a942-63ccdbb3a9ee --- action.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'action.php') diff --git a/action.php b/action.php index 20559dba1..2d347f8be 100644 --- a/action.php +++ b/action.php @@ -55,8 +55,7 @@ function guess_mime_type($ext) function do_error( $code, $str ) { - header("HTTP/1.1 $code "); - header("Status: $code "); + set_status_header( $code ); echo $str ; exit(); } @@ -148,8 +147,7 @@ if (!url_is_remote($file)) if ( isset( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) { - header("HTTP/1.1 304 Not modified "); - header("Status: 304 Not modified"); + set_status_header(304); foreach ($http_headers as $header) { header( $header ); -- cgit v1.2.3