aboutsummaryrefslogtreecommitdiffstats
path: root/public/mentions-legales.php
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-20 17:28:00 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-20 17:28:00 +0100
commite10f46c20226609198ac2a1cceab056e87e4d847 (patch)
tree7bd906ea1ee7d0f4e92cfa012824d41ac93389f8 /public/mentions-legales.php
parent1502419b0adf915a50ddaec36ab400fd742d745d (diff)
build: make development mode optional
This way, if dotenv is not loaded it will always include stylesheets.
Diffstat (limited to 'public/mentions-legales.php')
-rw-r--r--public/mentions-legales.php6
1 files changed, 3 insertions, 3 deletions
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();
<meta name="msapplication-config" content="/assets/images/favicon/browserconfig.xml">
<meta name="theme-color" content="#194476">
<?php
- if ($dap_current_env === 'production') {
- echo '<link rel="stylesheet" href="assets/css/style.css" />';
- } else {
+ if ($dap_current_env === 'development') {
echo '<script src="assets/js/style.js"></script>';
+ } else {
+ echo '<link rel="stylesheet" href="assets/css/style.css" />';
}
?>
</head>