Project

General

Profile

Bug #22079 » class.t3lib_tceforms.php.0013461.diff

Administrator Admin, 2010-03-11 13:33

View differences:

t3lib/class.t3lib_tceforms.php (working copy)
$selIconInfo = @getimagesize(PATH_typo3.$icon);
} else {
$selIconFile = t3lib_iconWorks::skinImg($this->backPath,'gfx/'.$icon,'',1);
$iconPath = substr($selIconFile, strlen($this->backPath));
$selIconInfo = @getimagesize(PATH_typo3 . $iconPath);
// Check if $selIconFile begins with '../' to get the correct imagesize in case of alternative backend-icons and symlinked source (RFC #13461):
if (substr($selIconFile,0,3)=='../') {
$selIconInfo = @getimagesize(PATH_site.t3lib_div::resolveBackPath(substr($selIconFile,3)));
} else {
$iconPath = substr($selIconFile, strlen($this->backPath));
$selIconInfo = @getimagesize(PATH_typo3 . $iconPath);
}
}
return array($selIconFile,$selIconInfo);
}
(1-1/2)