diff options
Diffstat (limited to 'include/language.php')
-rw-r--r-- | include/language.php | 10 |
1 files 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;"; } /** |