<!-- Icons -->
<link rel="apple-touch-icon" sizes="180x180" href="{$__wcf->getStyleHandler()->getStyle()->getFaviconAppleTouchIcon()}">
<link rel="manifest" href="{@$__wcf->getStyleHandler()->getStyle()->getFaviconManifest()}">
-<link rel="shortcut icon" href="{@$__wcf->getFavicon()}">
+<link rel="shortcut icon" href="{$__wcf->getPath()}{$__wcf->getStyleHandler()->getStyle()->getRelativeFavicon()}">
<meta name="msapplication-config" content="{@$__wcf->getStyleHandler()->getStyle()->getFaviconBrowserconfig()}">
<meta name="theme-color" content="{$__wcf->getStyleHandler()->getStyle()->getVariable('wcfPageThemeColor', true)}">
}
/**
- * Returns the favicon URL or a base64 encoded image.
- *
- * @return string
+ * @deprecated 5.6 Use ActiveStyle::getRelativeFavicon() directly.
*/
public function getFavicon()
{
- $activeApplication = ApplicationHandler::getInstance()->getActiveApplication();
- $wcf = ApplicationHandler::getInstance()->getWCF();
$favicon = StyleHandler::getInstance()->getStyle()->getRelativeFavicon();
- if ($activeApplication->domainName !== $wcf->domainName) {
- if (\file_exists(WCF_DIR . $favicon)) {
- $favicon = \file_get_contents(WCF_DIR . $favicon);
-
- return 'data:image/x-icon;base64,' . \base64_encode($favicon);
- }
- }
-
return self::getPath() . $favicon;
}