aboutsummaryrefslogtreecommitdiffstats
path: root/action.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-12-08 00:12:44 +0000
committerrvelices <rv-github@modusoptimus.com>2006-12-08 00:12:44 +0000
commit7325369bf5f7ea3f3f50d0f716b9ddf417767623 (patch)
treefd7c74180da16d17da705ecd02835258fbf52e21 /action.php
parent92fc9abb14a2186806ed50322730caae54909f0f (diff)
- 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
Diffstat (limited to '')
-rw-r--r--action.php6
1 files changed, 2 insertions, 4 deletions
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 );