Merge pull request 'added impressum as a var' (#20) from impressum-as-var into main
All checks were successful
Build (and tag) Images / build (push) Successful in 47s

Reviewed-on: #20
Reviewed-by: Vincent Mahnke <vimaster@noreply.git.hamburg.ccc.de>
This commit is contained in:
asohh 2025-10-25 17:37:10 +02:00
commit b3a38df17a
3 changed files with 3 additions and 1 deletions

View file

@ -27,6 +27,7 @@ services:
DEFAULT_LAT: 0
DEFAULT_LON: 0
DEFAULT_LANGUAGE: en
IMPRESSUM_URL: https://hamburg.ccc.de/imprint/
ports:
- "8080:80"
depends_on:

View file

@ -5,6 +5,7 @@
define('DEFAULT_LANGUAGE', getenv('DEFAULT_LANGUAGE') ?: 'en');
define('DEFAULT_PIE', 'country');
define('DEFAULT_TIME', 'single');
define('IMPRESSUM_URL', getenv('IMPRESSUM_URL') ?: '');
define('MYSQL_HOST', getenv('MYSQL_HOST') ?: '');
define('MYSQL_DB', getenv('MYSQL_DB') ?: '');

View file

@ -237,7 +237,7 @@
<br><br>
&#x2756;
<br><br><br>
<a href="https://hamburg.ccc.de/imprint/">Impressum</a>
<a href="<?php echo IMPRESSUM_URL?>">Impressum</a>
<br><br>
<?php echo translate($i18nCommon, $i18nCommonDefault, 'gdpr', [], [], []); ?>
<br><br>