forked from ZwiiCMS-Team/ZwiiCMS
[9.1.0] affiche toujours une favicon même si effacée
This commit is contained in:
parent
2536098b6f
commit
70dfbc6c88
@ -1899,8 +1899,13 @@ class layout extends common {
|
|||||||
* Affiche le favicon
|
* Affiche le favicon
|
||||||
*/
|
*/
|
||||||
public function showFavicon() {
|
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 . '">';
|
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
BIN
core/vendor/zwiico/ico/favicon.ico
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
Loading…
x
Reference in New Issue
Block a user