Project

General

Profile

Bug #20153 » 010650-favicon-v3.patch

Administrator Admin, 2009-10-19 09:49

View differences:

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"';
}
} else {
$iconMimeType = ' type="image/x-icon"';
}
$pageRenderer->setIconMimeType($iconMimeType);
$pageRenderer->setFavIcon($favIcon);
}
(3-3/4)