aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-10-13 01:08:06 +0200
committerMax Kostikov <max@kostikov.co>2018-10-13 01:08:06 +0200
commit0de713ff363cadd706c27606553cc555ddc3a48a (patch)
treeb56250c99df74df21cce544397ce6a9566e94eae
parent137bee9d27c228f6152895a862f3716e4128cb99 (diff)
downloadvolse-hubzilla-0de713ff363cadd706c27606553cc555ddc3a48a.tar.gz
volse-hubzilla-0de713ff363cadd706c27606553cc555ddc3a48a.tar.bz2
volse-hubzilla-0de713ff363cadd706c27606553cc555ddc3a48a.zip
Update language.php
-rw-r--r--include/language.php4
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;");
}
/**