From 3641ab8c7dfdffb7fdb16013eb6a96128a1bc23a Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sat, 13 Oct 2018 00:28:12 +0200 Subject: Update language.php --- include/language.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/language.php') diff --git a/include/language.php b/include/language.php index ef994cbd8..395d92ef1 100644 --- a/include/language.php +++ b/include/language.php @@ -276,8 +276,7 @@ function ta($k){ function tf() { $r = ""; - $lang = str_replace('-', '_', App::$language); - $file = "view/$lang/hstrings.php"; + $file = "view/".str_replace('-', '_', App::$language)."/hstrings.php"; if(file_exists($file)) $r = trim(shell_exec("sed -n '5p' ".$file." | tr -d '$'")); return $r != "" ? $r : "return 0;"; -- cgit v1.2.3