update api and ajax handling and response

This commit is contained in:
envoyr
2022-02-20 11:38:08 +01:00
parent d5e53cc7db
commit 424a00b39e
65 changed files with 881 additions and 2736 deletions

View File

@@ -53,10 +53,10 @@ require __DIR__ . '/lib/class.FroxlorInstall.php';
use Froxlor\UI\Panel\UI;
UI::initTwig(true);
UI::Twig()->addGlobal('install_mode', '1');
UI::Twig()->addGlobal('basehref', '../');
UI::twig()->addGlobal('install_mode', '1');
UI::twig()->addGlobal('basehref', '../');
$frxinstall = new FroxlorInstall();
$frxinstall->run();
UI::TwigOutputBuffer();
UI::twigOutputBuffer();

View File

@@ -133,7 +133,7 @@ class FroxlorInstall
$pagecontent = $result['pagecontent'];
$pagenavigation = $result['pagenavigation'];
UI::TwigBuffer('/install/index.html.twig', [
UI::twigBuffer('/install/index.html.twig', [
'pagetitle' => $pagetitle,
'pagecontent' => $pagecontent,
'pagenavigation' => $pagenavigation