mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 01:52:02 -04:00
Rename internal PHP config variable
This commit is contained in:
parent
a9eab552ab
commit
3c54255775
3 changed files with 5 additions and 5 deletions
|
@ -22,5 +22,5 @@ opcache.validate_timestamps = Off
|
||||||
[apcu]
|
[apcu]
|
||||||
apc.shm_size = 64M
|
apc.shm_size = 64M
|
||||||
|
|
||||||
[se]
|
[app]
|
||||||
se.site_status = "live"
|
app.site_status = "live"
|
||||||
|
|
|
@ -16,5 +16,5 @@ date.timezone = Etc/UTC
|
||||||
[opcache]
|
[opcache]
|
||||||
opcache.validate_timestamps = Off
|
opcache.validate_timestamps = Off
|
||||||
|
|
||||||
[se]
|
[app]
|
||||||
se.site_status = "dev"
|
app.site_status = "dev"
|
||||||
|
|
|
@ -9,7 +9,7 @@ $nowPd = new DateTimeImmutable('now', new DateTimeZone('America/Juneau')); // La
|
||||||
const SITE_STATUS_LIVE = 'live';
|
const SITE_STATUS_LIVE = 'live';
|
||||||
const SITE_STATUS_DEV = 'dev';
|
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.
|
// No trailing slash on any of the below constants.
|
||||||
if(SITE_STATUS == SITE_STATUS_LIVE){
|
if(SITE_STATUS == SITE_STATUS_LIVE){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue