dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "import: Don't try duplicate detection when the sha1 is unavailable" into REL1_31
[lhc/web/wiklou.git]
/
thumb.php
diff --git
a/thumb.php
b/thumb.php
index
c4b40dc
..
3b71413
100644
(file)
--- a/
thumb.php
+++ b/
thumb.php
@@
-235,9
+235,9
@@
function wfStreamThumb( array $params ) {
// Fix IE brokenness
$imsString = preg_replace( '/;.*$/', '', $_SERVER["HTTP_IF_MODIFIED_SINCE"] );
// Calculate time
// Fix IE brokenness
$imsString = preg_replace( '/;.*$/', '', $_SERVER["HTTP_IF_MODIFIED_SINCE"] );
// Calculate time
-
MediaWiki
\suppressWarnings();
+
Wikimedia
\suppressWarnings();
$imsUnix = strtotime( $imsString );
$imsUnix = strtotime( $imsString );
-
MediaWiki
\restoreWarnings();
+
Wikimedia
\restoreWarnings();
if ( wfTimestamp( TS_UNIX, $img->getTimestamp() ) <= $imsUnix ) {
HttpStatus::header( 304 );
return;
if ( wfTimestamp( TS_UNIX, $img->getTimestamp() ) <= $imsUnix ) {
HttpStatus::header( 304 );
return;