From 30303a3ad0d0f31d93c25f42bfd10d70e8277b72 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 10 Dec 2022 22:27:08 +0100 Subject: Update --- includes/short.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/short.inc') diff --git a/includes/short.inc b/includes/short.inc index 6883cc7..98efd20 100644 --- a/includes/short.inc +++ b/includes/short.inc @@ -4,7 +4,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/functions.inc"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/bitset.inc"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/score.inc"; -global $toplevel; +global $toplevel; global $lang; global $pages; header("Content-Type: text/plain"); $members = scoreOrderGlobal(); @@ -45,8 +45,8 @@ if (in_array($toplevel, array_keys($list)) && $list[$toplevel]) { if ($toplevel !== "unknown") { header("Location: " . $list[$toplevel]); } else { - header("Location: /?error=Page not found: " . strip_tags($toplevel)) and die(); + header("Location: /?error=" . $lang["app"]["page"] . " " . strip_tags($toplevel)) and die(); } } else { - header("Location: /?error=Page not found: " . strip_tags($toplevel)) and die(); + header("Location: /?error=" . $lang["app"]["page"] . " " . strip_tags($toplevel)) and die(); } \ No newline at end of file -- cgit