fix(template): no <?php in template
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Florian Schmitt 2025-01-24 14:06:51 +03:00
parent bfc6a8e4fd
commit 5571276a19
2 changed files with 1 additions and 3 deletions

View file

@ -1,5 +1,3 @@
<?php
$wakkaConfig = array( $wakkaConfig = array(
'wakka_version' => '0.1.1', 'wakka_version' => '0.1.1',
'wikini_version' => '0.5.0', 'wikini_version' => '0.5.0',

View file

@ -375,7 +375,7 @@ function createWakkaConfig($domain, $user, $dbUser)
{ {
$destDir = '/home' . '/' . $user . '/' . $domain; $destDir = '/home' . '/' . $user . '/' . $domain;
$templates = new League\Plates\Engine(dirname(__FILE__) . '/templates'); $templates = new League\Plates\Engine(dirname(__FILE__) . '/templates');
file_put_contents($destDir.'/wakka.config.php', $templates->render('wakka.config', [ file_put_contents($destDir.'/wakka.config.php', '<?php'."\n\n".$templates->render('wakka.config', [
'domain' => $domain, 'domain' => $domain,
'database' => $dbUser['database'], 'database' => $dbUser['database'],
'databaseUser' => $dbUser['user'], 'databaseUser' => $dbUser['user'],