[BUGFIX] Use correct hook name for mime type guessers 81/57681/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 25 Jul 2018 08:53:13 +0000 (10:53 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 25 Jul 2018 09:05:58 +0000 (11:05 +0200)
Resolves: #85641
Related: #60019
Releases: master, 8.7, 7.6
Change-Id: If9c94c020da6991dc070fa6aa8395042686b2752
Reviewed-on: https://review.typo3.org/57681
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/Type/File/FileInfo.php

index aa19d01..a6df9e4 100644 (file)
@@ -44,9 +44,9 @@ class FileInfo extends \SplFileInfo implements TypeInterface
         }
 
         if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Type\File\FileInfo::class]['mimeTypeGuessers'])
-            && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Type\File\FileInfo::class]['mimeTypeGuesser'])
+            && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Type\File\FileInfo::class]['mimeTypeGuessers'])
         ) {
-            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Type\File\FileInfo::class]['mimeTypeGuesser'] as $mimeTypeGuesser) {
+            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Type\File\FileInfo::class]['mimeTypeGuessers'] as $mimeTypeGuesser) {
                 $hookParameters = [
                     'mimeType' => &$mimeType
                 ];