Update language.php

This commit is contained in:
Max Kostikov 2018-10-13 00:12:17 +02:00
parent de59300aaf
commit 3e19c4ddae

View File

@ -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;";
}
/**