Bug #20153 » 010650-favicon-v2.patch
typo3/sysext/tslib/class.tslib_pagegen.php (Arbeitskopie) | ||
---|---|---|
if ($GLOBALS['TSFE']->pSetup['shortcutIcon']) {
|
||
$favIcon = t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $GLOBALS['TSFE']->tmpl->getFileName($GLOBALS['TSFE']->pSetup['shortcutIcon']);
|
||
$favIconPath = PATH_site . $GLOBALS['TSFE']->tmpl->getFileName($GLOBALS['TSFE']->pSetup['shortcutIcon']);
|
||
$iconMimeType = '';
|
||
if (function_exists('finfo_open')) {
|
||
if (($finfo = @finfo_open(FILEINFO_MIME))) {
|
||
$iconMimeType = ' type="' . finfo_file($finfo, $favIcon) . '"';
|
||
$finfo = @finfo_open(FILEINFO_MIME);
|
||
if ($finfo) {
|
||
$iconMimeType = ' type="' . finfo_file($finfo, $favIconPath) . '"';
|
||
finfo_close($finfo);
|
||
$pageRenderer->setIconMimeType($iconMimeType);
|
||
} else {
|
||
$iconMimeType = ' type="image/x-icon"';
|
||
}
|
||
}
|
||
$pageRenderer->setFavIcon($favIcon);
|