/** * Get icon for the row. * If $this->iconPath and $this->iconName is set, try to get icon based on those values. * * @param array Item row. * @return string Image tag. */ function getIcon($row) { if ($this->iconPath && $this->iconName) { if (!$this->iconPath_cleaned) { $this->iconPath = preg_replace('#^' . preg_quote($GLOBALS['BACK_PATH']) . '#', '', $this->iconPath); $this->iconPath_cleaned = true; } $icon = '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], $this->iconPath . $this->iconName, 'width="18" height="16"') . ' alt="" />'; $icon = $this->wrapIcon($icon, $row); } else { $icon = parent::getIcon($row); } return $icon; }