From 45b58da72187a7b1ed4d75fc25bf5dd59a86a9c4 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 23 Dec 2024 22:14:44 -0500 Subject: rework tooling to make environement loading easier --- src/_base.php | 2 +- src/config.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-freya