install-finish-magic
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -163,11 +163,14 @@ class UI
|
||||
self::$install_mode = $install_mode;
|
||||
// init twig template engine
|
||||
$loader = new FilesystemLoader(Froxlor::getInstallDir() . '/templates/');
|
||||
self::$twig = new Environment($loader, [
|
||||
'debug' => true,
|
||||
'cache' => Froxlor::getInstallDir() . '/cache',
|
||||
'auto_reload' => true
|
||||
]);
|
||||
$twig_params = [
|
||||
'auto_reload' => true,
|
||||
'debug' => false,
|
||||
];
|
||||
if (is_writable(Froxlor::getInstallDir() . '/cache')) {
|
||||
$twig_params['cache'] = Froxlor::getInstallDir() . '/cache';
|
||||
}
|
||||
self::$twig = new Environment($loader, $twig_params);
|
||||
self::$twig->addExtension(new DebugExtension());
|
||||
self::$twig->addExtension(new CustomReflection());
|
||||
self::$twig->addExtension(new FroxlorTwig());
|
||||
|
||||
@@ -231,7 +231,11 @@ return [
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
'checked' => old('manual_config', '0', 'installation'),
|
||||
]
|
||||
],
|
||||
'target_servername' => [
|
||||
'type' => 'hidden',
|
||||
'value' => $_SESSION['installation']['servername'] ?? "",
|
||||
],
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user