[BUGFIX] Use non-deprecated API calls in MetaInformation 30/44030/4
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Tue, 13 Oct 2015 12:02:46 +0000 (14:02 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Wed, 14 Oct 2015 09:33:58 +0000 (11:33 +0200)
Resolves: #70572
Releases: master
Change-Id: I1c7f3ae81d91e18b89d37a14f32209e4af9c33f0
Reviewed-on: http://review.typo3.org/44030
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/Template/Components/MetaInformation.php

index 5703f2b..0490487 100644 (file)
@@ -105,7 +105,7 @@ class MetaInformation
         // If there IS a real page
         if (is_array($pageRecord) && $pageRecord['uid']) {
             $altText = BackendUtility::getRecordIconAltText($pageRecord, 'pages');
-            $iconImg = IconUtility::getSpriteIconForRecord('pages', $pageRecord, array('title' => $altText));
+            $iconImg = '<span title="' . $altText . '">' . $iconFactory->getIconForRecord('pages', $pageRecord, Icon::SIZE_SMALL)->render() . '</span>';
             // Make Icon:
             $theIcon = $moduleTemplate->wrapClickMenuOnIcon($iconImg, 'pages', $pageRecord['uid']);
             $uid = $pageRecord['uid'];
@@ -117,11 +117,17 @@ class MetaInformation
                 $title = $resourceObject->getName();
                 // If this is a folder but not in within file mount boundaries this is the root folder
                 if ($resourceObject instanceof FolderInterface && !$resourceObject->getStorage()->isWithinFileMountBoundaries($resourceObject)) {
-                    $iconImg = '<span title="' . htmlspecialchars($title) . '">' . $iconFactory->getIconForResource($resourceObject,
-                            Icon::SIZE_SMALL, null, array('mount-root' => true))->render() . '</span>';
+                    $iconImg = '<span title="' . htmlspecialchars($title) . '">' . $iconFactory->getIconForResource(
+                        $resourceObject,
+                        Icon::SIZE_SMALL,
+                        null,
+                        array('mount-root' => true)
+                    )->render() . '</span>';
                 } else {
-                    $iconImg = '<span title="' . htmlspecialchars($title) . '">' . $iconFactory->getIconForResource($resourceObject,
-                            Icon::SIZE_SMALL)->render() . '</span>';
+                    $iconImg = '<span title="' . htmlspecialchars($title) . '">' . $iconFactory->getIconForResource(
+                        $resourceObject,
+                        Icon::SIZE_SMALL
+                    )->render() . '</span>';
                 }
                 $theIcon = $moduleTemplate->wrapClickMenuOnIcon($iconImg, $pageRecord['combined_identifier']);
             } catch (ResourceDoesNotExistException $e) {