mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
[ticket/14285] Apply suggestions
PHPBB3-14285
This commit is contained in:
@@ -44,7 +44,7 @@ class controller
|
||||
* Constructor
|
||||
*
|
||||
* @param service $cache
|
||||
* @param driver_interfacd $db
|
||||
* @param driver_interface $db
|
||||
* @param storage $storage
|
||||
* @param symfony_request $symfony_request
|
||||
*/
|
||||
@@ -127,7 +127,7 @@ class controller
|
||||
{
|
||||
try
|
||||
{
|
||||
$content_type = $file_info->mimetype;
|
||||
$content_type = $file_info->get('mimetype');
|
||||
}
|
||||
catch (\phpbb\storage\exception\exception $e)
|
||||
{
|
||||
@@ -141,7 +141,7 @@ class controller
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->response->headers->set('Content-Length', $file_info->size);
|
||||
$this->response->headers->set('Content-Length', $file_info->get('size'));
|
||||
}
|
||||
catch (\phpbb\storage\exception\exception $e)
|
||||
{
|
||||
@@ -174,8 +174,6 @@ class controller
|
||||
|
||||
/**
|
||||
* Garbage Collection
|
||||
*
|
||||
* @param bool $exit Whether to die or not
|
||||
*/
|
||||
protected function file_gc()
|
||||
{
|
||||
|
Reference in New Issue
Block a user