diff options
author | Max Kostikov <max@kostikov.co> | 2018-10-13 00:12:17 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-10-13 00:12:17 +0200 |
commit | 3e19c4ddae0a07bece54b9a4240431e5261bfcc3 (patch) | |
tree | a20fa611634636345df765b8634ce06bc80916c9 | |
parent | de59300aafe33f9a026360baa3e921992864ec73 (diff) | |
download | volse-hubzilla-3e19c4ddae0a07bece54b9a4240431e5261bfcc3.tar.gz volse-hubzilla-3e19c4ddae0a07bece54b9a4240431e5261bfcc3.tar.bz2 volse-hubzilla-3e19c4ddae0a07bece54b9a4240431e5261bfcc3.zip |
Update language.php
-rw-r--r-- | include/language.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/language.php b/include/language.php index 556752cf9..72ceb67b0 100644 --- a/include/language.php +++ b/include/language.php @@ -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;"; } /** |