change $_ENV to getenv

This commit is contained in:
Fabian Hufenreuter 2025-01-10 13:24:08 +01:00
parent 05ea20c332
commit cbb1a95b64
No known key found for this signature in database

View File

@ -23,11 +23,11 @@ const LG_CSS_OVERRIDES = false;
const LG_CUSTOM_HEAD = false;
// Enable or disable blocks/parts of the LG, pass these environment variables with any value to disable them;
define('LG_BLOCK_NETWORK', !isset($_ENV['DISABLE_BLOCK_NETWORK']));
define('LG_BLOCK_LOOKINGGLASS', !isset($_ENV['DISABLE_BLOCK_LOOKINGGLASS']));
define('LG_BLOCK_SPEEDTEST', !isset($_ENV['DISABLE_BLOCK_SPEEDTEST']));
define('LG_BLOCK_NETWORK', !getenv('DISABLE_BLOCK_NETWORK'));
define('LG_BLOCK_LOOKINGGLASS', !getenv('DISABLE_BLOCK_LOOKINGGLASS'));
define('LG_BLOCK_SPEEDTEST', !getenv('DISABLE_BLOCK_SPEEDTEST'));
// This enables the custom block, which you can use to add something custom to the LG;
define('LG_BLOCK_CUSTOM', isset($_ENV['ENABLE_CUSTOM_BLOCK']));
define('LG_BLOCK_CUSTOM', getenv('ENABLE_CUSTOM_BLOCK'));
// Define a file here which will be used to display the custom block, can be PHP too which outputs HTML;
const LG_CUSTOM_HTML = __DIR__.'/custom.html.php';