[+BUGFIX] Fluid (ViewHelpers): Adjustment to skinning api change
authorSebastian Kurfürst <sebastian@typo3.org>
Tue, 16 Nov 2010 12:44:26 +0000 (12:44 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Tue, 16 Nov 2010 12:44:26 +0000 (12:44 +0000)
The Fluid ViewHelper now uses the skinning API correctly.
This bugfix has been already in TYPO3 Core, but not yet here.

typo3/sysext/fluid/Classes/ViewHelpers/Be/PageInfoViewHelper.php

index d47749e..cdffcec 100644 (file)
@@ -55,7 +55,7 @@ class Tx_Fluid_ViewHelpers_Be_PageInfoViewHelper extends Tx_Fluid_ViewHelpers_Be
                                // Add icon with clickmenu, etc:
                if ($pageRecord['uid']) {       // If there IS a real page
                        $alttext = t3lib_BEfunc::getRecordIconAltText($pageRecord, 'pages');
-                       $iconImg = t3lib_iconWorks::getIconImage('pages', $pageRecord, $this->backPath, 'class="absmiddle" title="'. htmlspecialchars($alttext) . '"');
+                       $iconImg = t3lib_iconWorks::getSpriteIconForRecord('pages', $pageRecord, array('title' => htmlspecialchars($alttext)));
                                // Make Icon:
                        $theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($iconImg, 'pages', $pageRecord['uid']);
                } else {        // On root-level of page tree