mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
- 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
This commit is contained in:
+2
-4
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user