[BUGFIX] Followup to remove PHP5.5 only syntax 57/36457/3
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 30 Jan 2015 17:25:15 +0000 (18:25 +0100)
committerFrans Saris <franssaris@gmail.com>
Fri, 30 Jan 2015 17:36:38 +0000 (18:36 +0100)
Patch #36454 introduced by accident a ::class call, which will
break in PHP versions < 5.5

Change-Id: I0ce3b813fc8a176a9ce9e993474f2668bf2cab01
Resolves: #62829
Releases: 6.2
Reviewed-on: http://review.typo3.org/36457
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php

index 20a487c..5b758d2 100644 (file)
@@ -66,7 +66,7 @@ class MetaDataRepository implements SingletonInterface {
                        if ($file->getType() === File::FILETYPE_IMAGE && $file->getStorage()->getDriverType() === 'Local') {
                                $fileNameAndPath = $file->getForLocalProcessing(FALSE);
 
-                               $imageInfo = GeneralUtility::makeInstance(FileType\ImageInfo::class, $fileNameAndPath);
+                               $imageInfo = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Type\\File\\ImageInfo', $fileNameAndPath);
 
                                $additionalMetaInformation = array(
                                        'width' => $imageInfo->getWidth(),
@@ -241,4 +241,4 @@ class MetaDataRepository implements SingletonInterface {
        public static function getInstance() {
                return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\Index\\MetaDataRepository');
        }
-}
+}
\ No newline at end of file