[9.1.0] affiche toujours une favicon même si effacée

This commit is contained in:
fredtempez 2019-05-04 12:09:03 +02:00
parent 2536098b6f
commit 70dfbc6c88
2 changed files with 6 additions and 1 deletions

View File

@ -1899,8 +1899,13 @@ class layout extends common {
* Affiche le favicon
*/
public function showFavicon() {
if($favicon = $this->getData(['config', 'favicon'])) {
$favicon = $this->getData(['config', 'favicon']);
if($favicon &&
file_exists('site/file/source/' . $favicon)
) {
echo '<link rel="shortcut icon" href="' . helper::baseUrl(false) . 'site/file/source/' . $favicon . '">';
} else {
echo '<link rel="shortcut icon" href="' . helper::baseUrl(false) . 'core/vendor/zwiico/ico/favicon.ico">';
}
}

BIN
core/vendor/zwiico/ico/favicon.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB