From 25913a1027ecffd02909c3eaf488f5f7a590c76b Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Thu, 20 Nov 2025 23:27:30 +0100 Subject: [PATCH] sd --- src/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functions.php b/src/functions.php index 070ad6e..4e4f6b8 100644 --- a/src/functions.php +++ b/src/functions.php @@ -8,8 +8,6 @@ * tpl('faq', 'landing', 'fakecheck'); // landing/fakecheck/faq.php */ - echo "\n"; - function tpl(string $file, string $type = 'structure', string $site = 'main'): void { @@ -37,7 +35,9 @@ function tpl(string $file, string $type = 'structure', string $site = 'main'): v // structure -> structure/{file}.php $path = $base . "structure/$file.php"; } - echo "\n"; + // 🔹 alle globalen Variablen (aus index.php) in den lokalen Scope holen + extract($GLOBALS, EXTR_SKIP); + // Datei laden if (file_exists($path)) { include $path;