summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorVolkan Gezer <volkangezer@gmail.com>2014-04-24 01:42:18 +0200
committerVolkan Gezer <volkangezer@gmail.com>2014-04-24 01:42:18 +0200
commitff0dab6e92f71dab31d902d2ae9a6ba87f0cea88 (patch)
treee985878d23312a11f2e0472358d641ee08bcf48b /lib/base.php
parent645ecb76448a1452905f8aae6b59ec2bda37653b (diff)
downloadnextcloud-server-ff0dab6e92f71dab31d902d2ae9a6ba87f0cea88.tar.gz
nextcloud-server-ff0dab6e92f71dab31d902d2ae9a6ba87f0cea88.zip
This adds one more missing untranslated text from lib/share
Also displays the untrusted domain warning in English
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index 83f54a8e4db..0f55c1175c7 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -698,6 +698,7 @@ class OC {
* @brief Handle the request
*/
public static function handleRequest() {
+ $l = \OC_L10N::get('lib');
// load all the classpaths from the enabled apps so they are available
// in the routing files of each app
OC::loadAppClassPaths();
@@ -719,8 +720,8 @@ class OC {
header('HTTP/1.1 400 Bad Request');
header('Status: 400 Bad Request');
OC_Template::printErrorPage(
- 'You are accessing the server from an untrusted domain.',
- 'Please contact your administrator'
+ $l->t('You are accessing the server from an untrusted domain.'),
+ $l->t('Please contact your administrator')
);
return;
}