summaryrefslogtreecommitdiffstats
path: root/lib/private/template
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-10-20 13:43:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-10-29 10:09:12 +0100
commita589d61b78fbfedad8fcf3ee59522b2e95de48ed (patch)
tree52966755f41956bce94555975bcf0f2cae6b1236 /lib/private/template
parentec1a73fab9aa6b71b502ee45f4d0dd4f20661930 (diff)
downloadnextcloud-server-a589d61b78fbfedad8fcf3ee59522b2e95de48ed.tar.gz
nextcloud-server-a589d61b78fbfedad8fcf3ee59522b2e95de48ed.zip
in case a translation javascript is not found we no longer bail out
remove translation.php
Diffstat (limited to 'lib/private/template')
-rw-r--r--lib/private/template/jsresourcelocator.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/template/jsresourcelocator.php b/lib/private/template/jsresourcelocator.php
index f8fe3817ce6..507f31327a6 100644
--- a/lib/private/template/jsresourcelocator.php
+++ b/lib/private/template/jsresourcelocator.php
@@ -35,6 +35,10 @@ class JSResourceLocator extends ResourceLocator {
) {
return;
}
+ // missing translations files fill be ignored
+ if (strpos($script, "l10n/") === 0) {
+ return;
+ }
throw new \Exception('js file not found: script:'.$script);
}