sd
This commit is contained in:
@@ -8,8 +8,6 @@
|
||||
* tpl('faq', 'landing', 'fakecheck'); // landing/fakecheck/faq.php
|
||||
*/
|
||||
|
||||
echo "<!-- DEBUG: tpl geladen -->\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 "<!-- DEBUG: include path = $path -->\n";
|
||||
// 🔹 alle globalen Variablen (aus index.php) in den lokalen Scope holen
|
||||
extract($GLOBALS, EXTR_SKIP);
|
||||
|
||||
// Datei laden
|
||||
if (file_exists($path)) {
|
||||
include $path;
|
||||
|
||||
Reference in New Issue
Block a user