From 3c5425577533d84847c4c3907f5c99caee31b824 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Tue, 14 May 2024 15:47:29 -0500 Subject: [PATCH] Rename internal PHP config variable --- config/php/fpm/standardebooks.org.ini | 4 ++-- config/php/fpm/standardebooks.test.ini | 4 ++-- lib/Constants.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/php/fpm/standardebooks.org.ini b/config/php/fpm/standardebooks.org.ini index a2615bb7..da3efa56 100644 --- a/config/php/fpm/standardebooks.org.ini +++ b/config/php/fpm/standardebooks.org.ini @@ -22,5 +22,5 @@ opcache.validate_timestamps = Off [apcu] apc.shm_size = 64M -[se] -se.site_status = "live" +[app] +app.site_status = "live" diff --git a/config/php/fpm/standardebooks.test.ini b/config/php/fpm/standardebooks.test.ini index aaf7af43..f9e67e03 100644 --- a/config/php/fpm/standardebooks.test.ini +++ b/config/php/fpm/standardebooks.test.ini @@ -16,5 +16,5 @@ date.timezone = Etc/UTC [opcache] opcache.validate_timestamps = Off -[se] -se.site_status = "dev" +[app] +app.site_status = "dev" diff --git a/lib/Constants.php b/lib/Constants.php index c37cb5e9..b5863b89 100644 --- a/lib/Constants.php +++ b/lib/Constants.php @@ -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){