From c52dbf618eb45fb5be0b86c23bf18776bd29575c Mon Sep 17 00:00:00 2001 From: luptmoor Date: Thu, 23 Apr 2026 09:28:35 +0200 Subject: [PATCH] added comments for slug as env var --- public/admin.php | 2 +- public/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/admin.php b/public/admin.php index 697c4ed..9d137ec 100644 --- a/public/admin.php +++ b/public/admin.php @@ -43,7 +43,7 @@ if ($page === 'logout') { // ----------------------------------------------------------------- $pdo = get_db(); $stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug"); -$stmt->execute([':slug' => 'lohne']); +$stmt->execute([':slug' => 'lohne']); # TODO: add slug as env var $municipality = $stmt->fetch(); // Shows Login Page if not authenticated diff --git a/public/index.php b/public/index.php index b3b189e..4c2e12e 100644 --- a/public/index.php +++ b/public/index.php @@ -14,7 +14,7 @@ require_once __DIR__ . '/api/db.php'; // ----------------------------------------------------------------- $pdo = get_db(); $stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug"); -$stmt->execute([':slug' => 'lohne']); +$stmt->execute([':slug' => 'lohne']); # TODO: add slug as env var $municipality = $stmt->fetch(); if (!$municipality) {