Bug #20153 » 010650-favicon-v4.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']);
|
||
$iconMimeType = '';
|
||
$favIconPath = PATH_site . $GLOBALS['TSFE']->tmpl->getFileName($GLOBALS['TSFE']->pSetup['shortcutIcon']);
|
||
$iconMimeType = ' type="image/x-icon"';
|
||
if (function_exists('finfo_open')) {
|
||
if (($finfo = @finfo_open(FILEINFO_MIME))) {
|
||
$iconMimeType = ' type="' . finfo_file($finfo, $favIcon) . '"';
|
||
$iconMimeType = ' type="' . finfo_file($finfo, $favIconPath) . '"';
|
||
finfo_close($finfo);
|
||
$pageRenderer->setIconMimeType($iconMimeType);
|
||
}
|
||
}
|
||
$pageRenderer->setIconMimeType($iconMimeType);
|
||
$pageRenderer->setFavIcon($favIcon);
|
||
}
|
- « Previous
- 1
- 2
- 3
- 4
- Next »