]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix translation for core/lostpassword
authorscambra <sergio@entrecables.com>
Fri, 21 Sep 2012 09:54:47 +0000 (11:54 +0200)
committerscambra <sergio@entrecables.com>
Fri, 21 Sep 2012 09:54:47 +0000 (11:54 +0200)
lib/template.php

index 8c872a2059b4842d6b6ae481a3a868e53aca800a..76a0b372b3c020d5774f88ab5cd346d660782402 100644 (file)
@@ -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');