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