aboutsummaryrefslogtreecommitdiff
path: root/app/views/importExport/sqlite.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-08-15 09:36:45 +0200
committerGravatar GitHub <noreply@github.com> 2025-08-15 09:36:45 +0200
commitddb9e91bf2b16aa6f31ebdb3a2119056e971ba96 (patch)
tree9c8366980860b83a30e129c84451ed45d3d9f82a /app/views/importExport/sqlite.phtml
parentcc8afa77505fba66dc8f6de794228184c7e05e74 (diff)
Fix some PHP 8.5 deprecations (#7826)
https://github.com/php/php-src/blob/php-8.5.0beta1/NEWS https://php.net/function.curl-close > This function has no effect. Prior to PHP 8.0.0, this function was used to close the resource.
Diffstat (limited to 'app/views/importExport/sqlite.phtml')
-rw-r--r--app/views/importExport/sqlite.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/importExport/sqlite.phtml b/app/views/importExport/sqlite.phtml
index fb24e8a92..f1d181a61 100644
--- a/app/views/importExport/sqlite.phtml
+++ b/app/views/importExport/sqlite.phtml
@@ -5,6 +5,6 @@ declare(strict_types=1);
header('Content-Type: application/vnd.sqlite3');
header('Content-Disposition: attachment; filename="' . basename($this->sqlitePath) . '"');
header('Cache-Control: private, no-store, max-age=0');
-header('Last-Modified: ' . gmdate(DateTimeInterface::RFC7231, @filemtime($this->sqlitePath) ?: 0));
+header('Last-Modified: ' . gmdate('D, d M Y H:i:s \\G\\M\\T', @filemtime($this->sqlitePath) ?: 0));
header('Content-Length: ' . (@filesize($this->sqlitePath) ?: 0));
readfile($this->sqlitePath);