Skip to content
Snippets Groups Projects
Commit fb4f9933 authored by Thomas Müller's avatar Thomas Müller
Browse files

Fix implementation of translation short cut

parent ff843845
Branches
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment