summaryrefslogtreecommitdiff
path: root/pages/disclaimers.inc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-12-10 22:27:08 +0100
committerMinteck <contact@minteck.org>2022-12-10 22:27:08 +0100
commit30303a3ad0d0f31d93c25f42bfd10d70e8277b72 (patch)
tree622964e7895c759232aff28230394aa5cc747be9 /pages/disclaimers.inc
parentf850a8a53efd719fef6c8784c5af7b89dd9a6a2f (diff)
downloadpluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.tar.gz
pluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.tar.bz2
pluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.zip
Update
Diffstat (limited to 'pages/disclaimers.inc')
-rw-r--r--pages/disclaimers.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/disclaimers.inc b/pages/disclaimers.inc
index ae3d04e..7f15bcc 100644
--- a/pages/disclaimers.inc
+++ b/pages/disclaimers.inc
@@ -1,6 +1,6 @@
<?php
-require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn;
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn; global $lang; global $pages;
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
?>
@@ -8,7 +8,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
<br>
<div class="container">
<div id="page-content">
- <?= file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/content/disclaimers.html") ?>
+ <?= file_exists($_SERVER['DOCUMENT_ROOT'] . "/content/disclaimers.$lang[_name].html") ? file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/content/disclaimers.$lang[_name].html") : file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/content/disclaimers.html") ?>
</div>
</div>