Update language.php
This commit is contained in:
parent
137bee9d27
commit
0de713ff36
@ -265,7 +265,7 @@ function ta($k){
|
|||||||
$t = App::$strings[$k];
|
$t = App::$strings[$k];
|
||||||
if (is_array($t))
|
if (is_array($t))
|
||||||
$t = implode("/", $t);
|
$t = implode("/", $t);
|
||||||
return $t;
|
return ($t == "" ? $k : $t);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -279,7 +279,7 @@ function tf() {
|
|||||||
$file = "view/".str_replace('-', '_', App::$language)."/hstrings.php";
|
$file = "view/".str_replace('-', '_', App::$language)."/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