From e10f46c20226609198ac2a1cceab056e87e4d847 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 20 Feb 2022 17:28:00 +0100 Subject: build: make development mode optional This way, if dotenv is not loaded it will always include stylesheets. --- public/index.php | 6 +++--- public/legal-notice.php | 6 +++--- public/license.php | 6 +++--- public/mentions-legales.php | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/public/index.php b/public/index.php index e2561ef..debd008 100644 --- a/public/index.php +++ b/public/index.php @@ -32,10 +32,10 @@ $dap_current_env = dap_get_current_env(); '; - } else { + if ($dap_current_env === 'development') { echo ''; + } else { + echo ''; } ?> diff --git a/public/legal-notice.php b/public/legal-notice.php index 202b3ae..65db82f 100644 --- a/public/legal-notice.php +++ b/public/legal-notice.php @@ -32,10 +32,10 @@ $dap_current_env = dap_get_current_env(); '; - } else { + if ($dap_current_env === 'development') { echo ''; + } else { + echo ''; } ?> diff --git a/public/license.php b/public/license.php index c83af97..e6e107f 100644 --- a/public/license.php +++ b/public/license.php @@ -32,10 +32,10 @@ $dap_current_env = dap_get_current_env(); '; - } else { + if ($dap_current_env === 'development') { echo ''; + } else { + echo ''; } ?> diff --git a/public/mentions-legales.php b/public/mentions-legales.php index 1a59cfb..b96977d 100644 --- a/public/mentions-legales.php +++ b/public/mentions-legales.php @@ -32,10 +32,10 @@ $dap_current_env = dap_get_current_env(); '; - } else { + if ($dap_current_env === 'development') { echo ''; + } else { + echo ''; } ?> -- cgit v1.2.3