[BUGFIX] Use correct hook name for mime type guessers
[Packages/TYPO3.CMS.git] / 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
             ];