fix view function in init and update dirname level in install

This commit is contained in:
envoyr
2022-04-28 16:57:35 +02:00
parent 5d08d5235d
commit da89315a10
2 changed files with 3 additions and 10 deletions

View File

@@ -34,8 +34,8 @@ class Install
public string $requiredVersion = '7.4.0';
public array $requiredExtensions = ['libxml', 'zip'];
public array $suggestedExtensions = ['curl'];
public array $suggestions;
public array $criticals;
public array $suggestions = [];
public array $criticals = [];
public function __construct()
{
@@ -76,7 +76,7 @@ class Install
public function handle()
{
$formfield = require dirname(__DIR__) . '/lib/formfields/install/formfield.install.php';
$formfield = require dirname(__DIR__, 3) . '/lib/formfields/install/formfield.install.php';
// init twig
UI::initTwig(true);