mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11912] Remove obsolete variable $mimetype from content_guesser
PHPBB3-11912
This commit is contained in:
@@ -28,12 +28,11 @@ class content_guesser extends guesser_base
|
|||||||
*/
|
*/
|
||||||
public function guess($file, $file_name = '')
|
public function guess($file, $file_name = '')
|
||||||
{
|
{
|
||||||
$mimetype = null;
|
|
||||||
if (function_exists('mime_content_type'))
|
if (function_exists('mime_content_type'))
|
||||||
{
|
{
|
||||||
$mimetype = mime_content_type($file);
|
return mime_content_type($file);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $mimetype;
|
return null; // optional
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user