aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/mimetype/content_guesser.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/phpBB/phpbb/mimetype/content_guesser.php b/phpBB/phpbb/mimetype/content_guesser.php
index 60e5a905e2..2d74582a21 100644
--- a/phpBB/phpbb/mimetype/content_guesser.php
+++ b/phpBB/phpbb/mimetype/content_guesser.php
@@ -20,7 +20,7 @@ class content_guesser extends guesser_base
*/
public function is_supported()
{
- return true;
+ return function_exists('mime_content_type');
}
/**
@@ -28,9 +28,6 @@ class content_guesser extends guesser_base
*/
public function guess($file, $file_name = '')
{
- if (function_exists('mime_content_type'))
- {
- return mime_content_type($file);
- }
+ return mime_content_type($file);
}
}