diff options
| author | 2025-07-05 23:46:54 +0200 | |
|---|---|---|
| committer | 2025-07-05 23:46:54 +0200 | |
| commit | ce22997dfbe4a8f2a6efa6f77d5b0bfc7b2dabd1 (patch) | |
| tree | 1b109da06a269ccaca4c6e5a9be9143f4c5be831 /p/f.php | |
| parent | 8b73573a32b23be89b6a8da63bab471480d5b6d0 (diff) | |
Fix custom icons not displaying (#7717)
* Fix custom icons not displaying
* Refactor
Diffstat (limited to 'p/f.php')
| -rw-r--r-- | p/f.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -25,7 +25,9 @@ $ico = FAVICONS_DIR . $id . '.ico'; $ico_mtime = @filemtime($ico) ?: 0; $txt_mtime = @filemtime($txt) ?: 0; -if ($ico_mtime == false || $ico_mtime < $txt_mtime || ($ico_mtime < time() - (mt_rand(15, 20) * 86400))) { +$is_custom_favicon = $ico_mtime != false && $txt_mtime == false; + +if (($ico_mtime == false || $ico_mtime < $txt_mtime || ($ico_mtime < time() - (mt_rand(15, 20) * 86400))) && !$is_custom_favicon) { if ($txt_mtime == false) { show_default_favicon(1800); exit(); |
