Fix custom Favicon

This commit is contained in:
johnnyq 2025-10-02 11:42:30 -04:00
parent 0e401df3c0
commit 6c6a988c2b
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ header("X-Frame-Options: DENY"); // Legacy
<meta name="robots" content="noindex"> <meta name="robots" content="noindex">
<!-- Favicon: If Fav Icon exists, else use the default one --> <!-- Favicon: If Fav Icon exists, else use the default one -->
<?php if (file_exists('../uploads/favicon.ico')) { ?> <?php if(file_exists($_SERVER['DOCUMENT_ROOT'] . '/uploads/favicon.ico')) { ?>
<link rel="icon" type="image/x-icon" href="/uploads/favicon.ico"> <link rel="icon" type="image/x-icon" href="/uploads/favicon.ico">
<?php } ?> <?php } ?>

View File

@ -36,7 +36,7 @@ $session_company_name = $row['company_name'];
Favicon Favicon
If Fav Icon exists else use the default one If Fav Icon exists else use the default one
--> -->
<?php if(file_exists('../uploads/favicon.ico')) { ?> <?php if(file_exists($_SERVER['DOCUMENT_ROOT'] . '/uploads/favicon.ico')) { ?>
<link rel="icon" type="image/x-icon" href="/uploads/favicon.ico"> <link rel="icon" type="image/x-icon" href="/uploads/favicon.ico">
<?php } ?> <?php } ?>

View File

@ -19,9 +19,9 @@ header("X-Frame-Options: DENY");
<title><?= $session_company_name; ?></title> <title><?= $session_company_name; ?></title>
<!-- Favicon --> <!-- Favicon -->
<?php if(file_exists(__DIR__ . '../uploads/favicon.ico')): ?> <?php if(file_exists($_SERVER['DOCUMENT_ROOT'] . '/uploads/favicon.ico')) { ?>
<link rel="icon" type="image/x-icon" href="/uploads/favicon.ico"> <link rel="icon" type="image/x-icon" href="/uploads/favicon.ico">
<?php endif; ?> <?php } ?>
<!-- Font Awesome --> <!-- Font Awesome -->
<link rel="stylesheet" href="/plugins/fontawesome-free/css/all.min.css"> <link rel="stylesheet" href="/plugins/fontawesome-free/css/all.min.css">