fix translation for core/lostpassword

This commit is contained in:
scambra 2012-09-21 11:54:47 +02:00
parent 0f15bc881f
commit e48811017d
1 changed files with 2 additions and 1 deletions

View 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');