Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
fb4f9933
Commit
fb4f9933
authored
Oct 29, 2014
by
Thomas Müller
Browse files
Fix implementation of translation short cut
parent
ff843845
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/template/functions.php
View file @
fb4f9933
...
...
@@ -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
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment