diff options
| author | Freya Murphy <freya@freyacat.org> | 2024-12-23 22:14:44 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2024-12-23 22:14:44 -0500 |
| commit | 45b58da72187a7b1ed4d75fc25bf5dd59a86a9c4 (patch) | |
| tree | 721d43e663d0b9d7c15ebc4b180ba709e9e0f9c3 /src | |
| parent | lang null check (diff) | |
| download | crimson-45b58da72187a7b1ed4d75fc25bf5dd59a86a9c4.tar.gz crimson-45b58da72187a7b1ed4d75fc25bf5dd59a86a9c4.tar.bz2 crimson-45b58da72187a7b1ed4d75fc25bf5dd59a86a9c4.zip | |
rework tooling to make environement loading easier
Diffstat (limited to 'src')
| -rw-r--r-- | src/_base.php | 2 | ||||
| -rw-r--r-- | src/config.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/_base.php b/src/_base.php index 89df718..d53905d 100644 --- a/src/_base.php +++ b/src/_base.php @@ -173,7 +173,7 @@ abstract class Base { */ public function asset_stamp(string $path): int { - if (ENVIRONMENT == 'devlopment') + if (ENVIRONMENT == 'development') return time(); if (isset(FILE_TIMES[$path])) return FILE_TIMES[$path]; diff --git a/src/config.php b/src/config.php index 0d52d96..2c759a2 100644 --- a/src/config.php +++ b/src/config.php @@ -19,7 +19,7 @@ // ENVIRONMENT // -// devlopment - do not cache any assets +// development - do not cache any assets // - use http host provided by user // // production - use generated timestamps for each file @@ -29,7 +29,7 @@ if (!defined('ENVIRONMENT')) { if (getenv('ENVIRONMENT') !== FALSE) define('ENVIRONMENT', getenv('ENVIRONMENT')); else - define('ENVIRONMENT', 'devlopment'); + define('ENVIRONMENT', 'development'); } // CONFIG |