diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-02-16 18:29:20 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-02-16 18:29:20 +0100 |
commit | 9d2e1be699d573eebda922cf67f030d3d2aa462d (patch) | |
tree | 51448d2e7e695f127533c9aa3cb438d7184f89bd /lib/exe/detail.php | |
parent | 7e9efe5266f592dc927dbf126a901e7dea2b4f5d (diff) | |
download | rpg-9d2e1be699d573eebda922cf67f030d3d2aa462d.tar.gz rpg-9d2e1be699d573eebda922cf67f030d3d2aa462d.tar.bz2 |
introduced http_status() for sending HTTP status code FS#1698
It seems, some servers require a special Status: header for sending the
HTTP status code from PHP (F)CGI to the server. This patch introduces a
new function (adopted from CodeIgniter) for simplifying the status
handling.
Diffstat (limited to 'lib/exe/detail.php')
-rw-r--r-- | lib/exe/detail.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/detail.php b/lib/exe/detail.php index e597db3a2..db635c016 100644 --- a/lib/exe/detail.php +++ b/lib/exe/detail.php @@ -31,7 +31,7 @@ if($AUTH >= AUTH_READ){ $SRC = mediaFN($IMG); if(!@file_exists($SRC)){ //doesn't exist! - header("HTTP/1.0 404 File not Found"); + http_status(404); $ERROR = 'File not found'; } }else{ |