Fix to function calling
All checks were successful
Website Sync / website-sync (push) Successful in 6s
All checks were successful
Website Sync / website-sync (push) Successful in 6s
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
require_once "var_loading.inc.php";
|
require_once "var_loading.inc.php";
|
||||||
loadEnvironment(".env");
|
|
||||||
|
|
||||||
$host = $_ENV["DB_HOST"];
|
$host = $_ENV["DB_HOST"];
|
||||||
$protocol = $_ENV["DB_PROTOCOL"];
|
$protocol = $_ENV["DB_PROTOCOL"];
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ function loadEnvironment($path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load at application bootstrap
|
// Load at application bootstrap
|
||||||
# Not sure either
|
# Load the function itself.
|
||||||
loadEnvironment(__DIR__ . '/.env');
|
loadEnvironment(__DIR__ . '/.env');
|
||||||
|
|
||||||
// First found on ttps://levelup.gitconnected.com/how-to-securely-handle-production-credentials-in-php-without-exposing-them-in-git-237f4fd5cf91,
|
# First found on ttps://levelup.gitconnected.com/how-to-securely-handle-production-credentials-in-php-without-exposing-them-in-git-237f4fd5cf91,
|
||||||
// Own comments using #
|
# Own comments using #
|
||||||
Reference in New Issue
Block a user