Bug #22079 » class.t3lib_tceforms.php.0013461.diff
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);
|
||
}
|