summaryrefslogtreecommitdiff
path: root/includes/init.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 /includes/init.inc
parentf850a8a53efd719fef6c8784c5af7b89dd9a6a2f (diff)
downloadpluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.tar.gz
pluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.tar.bz2
pluralconnect-30303a3ad0d0f31d93c25f42bfd10d70e8277b72.zip
Update
Diffstat (limited to 'includes/init.inc')
-rw-r--r--includes/init.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/init.inc b/includes/init.inc
index 7265c0e..53a6328 100644
--- a/includes/init.inc
+++ b/includes/init.inc
@@ -4,12 +4,13 @@ global $title;
global $toplevel;
global $emergencyHeader;
global $pages;
+global $lang; global $pages;
$pages = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/pages.json"), true);
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.inc"; global $isLoggedIn;
if (in_array($toplevel, array_keys($pages))) {
- $title = $pages[$toplevel]["name"];
+ $title = $pages[$toplevel]["name"][$lang["_name"]];
if ($pages[$toplevel]["admin"]) {
$readOnly = false;