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

index a34735b..4608da4 100644 (file)
@@ -43,7 +43,7 @@ class FileInfo extends \SplFileInfo implements TypeInterface
             }
         }
 
-        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
             ];