Rename internal PHP config variable

This commit is contained in:
Alex Cabal 2024-05-14 15:47:29 -05:00
parent a9eab552ab
commit 3c54255775
3 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@ $nowPd = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // La
const SITE_STATUS_LIVE = 'live';
const SITE_STATUS_DEV = 'dev';
define('SITE_STATUS', get_cfg_var('se.site_status') ?: SITE_STATUS_DEV); // Set in the PHP INI configuration for both CLI and FPM. Have to use define() and not const so we can use a function.
define('SITE_STATUS', get_cfg_var('app.site_status') ?: SITE_STATUS_DEV); // Set in the PHP INI configuration for both CLI and FPM. Have to use define() and not const so we can use a function.
// No trailing slash on any of the below constants.
if(SITE_STATUS == SITE_STATUS_LIVE){