diff options
author | Max Kostikov <max@kostikov.co> | 2018-10-13 01:08:06 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-10-13 01:08:06 +0200 |
commit | 0de713ff363cadd706c27606553cc555ddc3a48a (patch) | |
tree | b56250c99df74df21cce544397ce6a9566e94eae /include | |
parent | 137bee9d27c228f6152895a862f3716e4128cb99 (diff) | |
download | volse-hubzilla-0de713ff363cadd706c27606553cc555ddc3a48a.tar.gz volse-hubzilla-0de713ff363cadd706c27606553cc555ddc3a48a.tar.bz2 volse-hubzilla-0de713ff363cadd706c27606553cc555ddc3a48a.zip |
Update language.php
Diffstat (limited to 'include')
-rw-r--r-- | include/language.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/language.php b/include/language.php index b10e5dde7..790c036d3 100644 --- a/include/language.php +++ b/include/language.php @@ -265,7 +265,7 @@ function ta($k){ $t = App::$strings[$k]; if (is_array($t)) $t = implode("/", $t); - return $t; + return ($t == "" ? $k : $t); } /** @@ -279,7 +279,7 @@ function tf() { $file = "view/".str_replace('-', '_', App::$language)."/hstrings.php"; if(file_exists($file)) $r = trim(shell_exec("sed -n '5p' ".$file." | tr -d '$'")); - return $r != "" ? $r : "return 0;"; + return ($r != "" ? $r : "return 0;"); } /** |