2010-06-12 Steffen Kamper <info@sk-typo3.de>
+ * Fixed bug #14467: Code cleanup: t3lib_iconWorks::getIconImage is not needed anymore (Thanks to Steffen Ritter)
* Fixed bug #14356: Make disable_controls available for all group fields, not just type "file" (Thanks to Sven Teuber)
2010-06-12 Susanne Moog <typo3@susanne-moog.de>
* @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) {
- $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;
+ t3lib_div::logDeprecatedFunction();
+ return self::getSpriteIconForRecord($table,$row);
}
/**