fix translation strings and update session lifetime to default panel sessiontimeout

Signed-off-by: Maurice Preuß (envoyr) <envoyr@froxlor.org>
This commit is contained in:
Maurice Preuß (envoyr)
2022-12-20 21:27:53 +01:00
parent 4acd1d4ef6
commit 996b2e4a78
4 changed files with 4 additions and 4 deletions

View File

@@ -282,7 +282,7 @@ class Install
{
// TODO: do validations
if (isset($field['mandatory']) && $field['mandatory'] && empty($attribute)) {
throw new Exception(lng('install.errors.mandatory_field_not_set', [htmlspecialchars($field['label'])]));
throw new Exception(lng('install.errors.mandatory_field_not_set', [$field['label']]));
}
return $attribute;
}

View File

@@ -93,7 +93,7 @@ class UI
public static function sendHeaders()
{
session_set_cookie_params([
'lifetime' => 60, // will be renewed based on settings in lib/init.php
'lifetime' => 600, // will be renewed based on settings in lib/init.php
'path' => '/',
'domain' => $_SERVER['HTTP_HOST'],
'secure' => self::requestIsHttps(),