Update language.php
This commit is contained in:
parent
16b6b76507
commit
3641ab8c7d
@ -276,8 +276,7 @@ function ta($k){
|
|||||||
function tf() {
|
function tf() {
|
||||||
|
|
||||||
$r = "";
|
$r = "";
|
||||||
$lang = str_replace('-', '_', App::$language);
|
$file = "view/".str_replace('-', '_', App::$language)."/hstrings.php";
|
||||||
$file = "view/$lang/hstrings.php";
|
|
||||||
if(file_exists($file))
|
if(file_exists($file))
|
||||||
$r = trim(shell_exec("sed -n '5p' ".$file." | tr -d '$'"));
|
$r = trim(shell_exec("sed -n '5p' ".$file." | tr -d '$'"));
|
||||||
return $r != "" ? $r : "return 0;";
|
return $r != "" ? $r : "return 0;";
|
||||||
|
Reference in New Issue
Block a user