mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/13044] \G\M\T to GMT in whole project
Note that there are more uses of "\G\M\T" in vendor files. PHPBB3-13044
This commit is contained in:
parent
7cbd9e9524
commit
ea5e46f6dd
1 changed files with 3 additions and 3 deletions
|
@ -60,13 +60,13 @@ function send_avatar_to_browser($file, $browser)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 31536000));
|
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
header('Content-Disposition: inline; ' . header_filename($file));
|
header('Content-Disposition: inline; ' . header_filename($file));
|
||||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 31536000));
|
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');
|
||||||
}
|
}
|
||||||
|
|
||||||
$size = @filesize($file_path);
|
$size = @filesize($file_path);
|
||||||
|
@ -421,7 +421,7 @@ function set_modified_headers($stamp, $browser)
|
||||||
send_status_line(304, 'Not Modified');
|
send_status_line(304, 'Not Modified');
|
||||||
// seems that we need those too ... browsers
|
// seems that we need those too ... browsers
|
||||||
header('Pragma: public');
|
header('Pragma: public');
|
||||||
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 31536000));
|
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue