From: Thomas Müller Date: Wed, 29 Oct 2014 09:58:10 +0000 (+0100) Subject: Fix implementation of translation short cut X-Git-Tag: v8.0.0alpha1~424^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fb4f9933363a83d98db81afd796043e48cff5a4e;p=nextcloud-server.git Fix implementation of translation short cut --- 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); } /**