From 41c466733c4d916d3f0664642bf4a888ac9f659a Mon Sep 17 00:00:00 2001 From: Fabian Schieder Date: Sat, 28 Feb 2026 01:36:12 +0100 Subject: [PATCH] Fix logoExists function to resolve web paths correctly and update stylesheet link to use absolute path --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index ab1be79..9cd7b1d 100644 --- a/index.php +++ b/index.php @@ -61,7 +61,7 @@ $projects = [ */ function logoExists(string $webPath): bool { $base = rtrim($_SERVER['DOCUMENT_ROOT'] ?? '/var/www/fabianschieder.com', '/'); - $full = $base . '/' . ltrim($webPath, '/'); + $full = $base . ltrim($webPath, '.'); // Debug: echo "\n"; return is_file($full); } @@ -73,7 +73,7 @@ function logoExists(string $webPath): bool { Fabian Schieder - +