diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-29 10:58:10 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-29 10:58:10 +0100 |
commit | fb4f9933363a83d98db81afd796043e48cff5a4e (patch) | |
tree | 72b174c760c1d34975ad854b1146f2e9af6aa6ad /lib | |
parent | ff84384513cef50fb80dc82b2b3426a1ca608a51 (diff) | |
download | nextcloud-server-fb4f9933363a83d98db81afd796043e48cff5a4e.tar.gz nextcloud-server-fb4f9933363a83d98db81afd796043e48cff5a4e.zip |
Fix implementation of translation short cut
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/template/functions.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/private/template/functions.php b/lib/private/template/functions.php index 8c94b7cf345..dede604c01d 100644 --- a/lib/private/template/functions.php +++ b/lib/private/template/functions.php @@ -58,17 +58,10 @@ function style($app, $file) { /** * Shortcut for adding translations to a page * @param string $app the appname - * @param string|string[] $file the filename, * if an array is given it will add all styles */ -function translation($app, $file) { - if(is_array($file)) { - foreach($file as $f) { - OC_Util::addStyle($app, $f); - } - } else { - OC_Util::addStyle($app, $file); - } +function translation($app) { + OC_Util::addTranslations($app); } /** |