summaryrefslogtreecommitdiff
path: root/includes/init.inc
diff options
context:
space:
mode:
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;