From 3e19c4ddae0a07bece54b9a4240431e5261bfcc3 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sat, 13 Oct 2018 00:12:17 +0200 Subject: Update language.php --- include/language.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/language.php b/include/language.php index 556752cf9..72ceb67b0 100644 --- a/include/language.php +++ b/include/language.php @@ -277,12 +277,12 @@ function ta($k){ */ function tf() { - $r = ''; + $r = ""; $lang = str_replace('-', '_', App::$language); - if(function_exists('string_plural_select_'.$lang)) { - $r = trim(shell_exec("sed -n '5p' view/".$lang."/hstrings.php | tr -d '$'")); - } - return $r; + $file = "view/$lang/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