Reverted revision 7901: #14467: Code cleanup: t3lib_iconWorks::getIconImage is not...
authorSteffen Kamper <info@sk-typo3.de>
Mon, 14 Jun 2010 09:52:11 +0000 (09:52 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 14 Jun 2010 09:52:11 +0000 (09:52 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7914 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_iconworks.php

index f7c1075..b9ad371 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-14  Steffen Kamper  <info@sk-typo3.de>
+
+       * Reverted revision 7901:  #14467: Code cleanup: t3lib_iconWorks::getIconImage is not needed anymore
+
 2010-06-13  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #14640: Improve cookie detection at login screen (Thanks to Steffen Gebert)
index a725bda..78e8509 100644 (file)
@@ -148,12 +148,17 @@ final class t3lib_iconWorks       {
         * @param       string          Additional attributes for the image tag
         * @param       boolean         If set, the icon will be grayed/shaded
         * @return      string          <img>-tag
-        * @deprecated  since TYPO3 4.4, use t3lib_iconWorks::getSpriteIconForRecord instead
         * @see getIcon()
         */
        public static function getIconImage($table, $row = array(), $backPath, $params = '', $shaded = FALSE) {
-               t3lib_div::logDeprecatedFunction();
-               return self::getSpriteIconForRecord($table,$row);
+               $str = '<img' .
+                               self::skinImg($backPath, self::getIcon($table, $row, $shaded), 'width="18" height="16"') .
+                               (trim($params) ? ' ' . trim($params) : '');
+               if (!stristr($str, 'alt="')) {
+                       $str.=' alt=""';
+               }
+               $str.=' />';
+               return $str;
        }
 
        /**