mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16955] Clean up storage and template classes
PHPBB3-16955
This commit is contained in:
@@ -278,7 +278,7 @@ class attachment extends controller
|
||||
$response->headers->set('Content-Disposition', $disposition);
|
||||
|
||||
// Set expires header for browser cache
|
||||
$time = new \Datetime();
|
||||
$time = new \DateTime();
|
||||
$response->setExpires($time->modify('+1 year'));
|
||||
|
||||
return parent::handle($attachment['physical_filename']);
|
||||
|
@@ -107,7 +107,7 @@ class avatar extends controller
|
||||
|
||||
$response->headers->set('Content-Disposition', $disposition);
|
||||
|
||||
$time = new \Datetime();
|
||||
$time = new \DateTime();
|
||||
$response->setExpires($time->modify('+1 year'));
|
||||
|
||||
parent::prepare($response, $file);
|
||||
|
Reference in New Issue
Block a user