mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-26 02:27:55 +01:00
Merge pull request #3797 from reitermarkus/patch-1
Fix broken tiles caused by implicit cast on PHP 8.
This commit is contained in:
commit
4d34510c8b
@ -94,7 +94,7 @@ if ($stmt->fetch()) {
|
|||||||
header('Content-Type: image/jpeg');
|
header('Content-Type: image/jpeg');
|
||||||
}
|
}
|
||||||
header('ETag: \'' . $thash . '\'');
|
header('ETag: \'' . $thash . '\'');
|
||||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $tlast / 1000) . ' GMT');
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', (int) ($tlast / 1000)) . ' GMT');
|
||||||
if (is_null($tnewimage)) {
|
if (is_null($tnewimage)) {
|
||||||
echo $timage;
|
echo $timage;
|
||||||
} else {
|
} else {
|
||||||
|
@ -99,7 +99,7 @@ if ($res && $timage) {
|
|||||||
header('Content-Type: image/jpeg');
|
header('Content-Type: image/jpeg');
|
||||||
}
|
}
|
||||||
header('ETag: \'' . $thash . '\'');
|
header('ETag: \'' . $thash . '\'');
|
||||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $tlast / 1000) . ' GMT');
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', (int) ($tlast / 1000)) . ' GMT');
|
||||||
echo stream_get_contents($timage);
|
echo stream_get_contents($timage);
|
||||||
} else {
|
} else {
|
||||||
header('Location: ../images/blank.png');
|
header('Location: ../images/blank.png');
|
||||||
|
Loading…
Reference in New Issue
Block a user