mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -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]
|
||||
apc.shm_size = 64M
|
||||
|
||||
[se]
|
||||
se.site_status = "live"
|
||||
[app]
|
||||
app.site_status = "live"
|
||||
|
|
|
@ -16,5 +16,5 @@ date.timezone = Etc/UTC
|
|||
[opcache]
|
||||
opcache.validate_timestamps = Off
|
||||
|
||||
[se]
|
||||
se.site_status = "dev"
|
||||
[app]
|
||||
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_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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue