diff options
author | scambra <sergio@entrecables.com> | 2012-09-21 11:54:47 +0200 |
---|---|---|
committer | scambra <sergio@entrecables.com> | 2012-09-21 11:54:47 +0200 |
commit | e48811017d5fdc6abbf01141fbc2d5368beaa9e6 (patch) | |
tree | 5ccbc68fb64f498b886fe0cee448a41d28cb8c65 | |
parent | 0f15bc881fcf3575e61c527552d78e7c86170e8d (diff) | |
download | nextcloud-server-e48811017d5fdc6abbf01141fbc2d5368beaa9e6.tar.gz nextcloud-server-e48811017d5fdc6abbf01141fbc2d5368beaa9e6.zip |
fix translation for core/lostpassword
-rw-r--r-- | lib/template.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/template.php b/lib/template.php index 8c872a2059b..76a0b372b3c 100644 --- a/lib/template.php +++ b/lib/template.php @@ -158,7 +158,8 @@ class OC_Template{ if($renderas == 'user') { $this->vars['requesttoken'] = OC_Util::callRegister(); } - $this->l10n = OC_L10N::get($app); + $parts = explode('/', $app); // fix translation when app is something like core/lostpassword + $this->l10n = OC_L10N::get($parts[0]); header('X-Frame-Options: Sameorigin'); header('X-XSS-Protection: 1; mode=block'); header('X-Content-Type-Options: nosniff'); |