From 70c9908df7b97a532db0b385d1d73835a1e6abf0 Mon Sep 17 00:00:00 2001 From: masiv_ Date: Wed, 4 Feb 2026 17:18:43 -0300 Subject: [PATCH] Fix to function calling --- includes/dbh.inc.php | 1 - includes/var_loading.inc.php | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/dbh.inc.php b/includes/dbh.inc.php index e626a50..011040f 100644 --- a/includes/dbh.inc.php +++ b/includes/dbh.inc.php @@ -3,7 +3,6 @@ declare(strict_types=1); require_once "var_loading.inc.php"; -loadEnvironment(".env"); $host = $_ENV["DB_HOST"]; $protocol = $_ENV["DB_PROTOCOL"]; diff --git a/includes/var_loading.inc.php b/includes/var_loading.inc.php index f3a54fc..2bbae6b 100644 --- a/includes/var_loading.inc.php +++ b/includes/var_loading.inc.php @@ -33,8 +33,8 @@ function loadEnvironment($path) { } // Load at application bootstrap -# Not sure either +# Load the function itself. loadEnvironment(__DIR__ . '/.env'); -// First found on ttps://levelup.gitconnected.com/how-to-securely-handle-production-credentials-in-php-without-exposing-them-in-git-237f4fd5cf91, -// Own comments using # \ No newline at end of file +# First found on ttps://levelup.gitconnected.com/how-to-securely-handle-production-credentials-in-php-without-exposing-them-in-git-237f4fd5cf91, +# Own comments using # \ No newline at end of file