Fix: version.txt nach src/ verschoben (Docker-Volume-Mount)
This commit is contained in:
parent
80e351dd58
commit
8ae8a8a284
2 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ class SettingsController
|
|||
public function show(array $params): void
|
||||
{
|
||||
$settings = Setting::get();
|
||||
$version = trim(@file_get_contents(dirname(__DIR__, 2) . '/version.txt') ?: '');
|
||||
$version = trim(@file_get_contents(dirname(__DIR__) . '/version.txt') ?: '');
|
||||
|
||||
$view = new View();
|
||||
$view->render('layout/base.php', [
|
||||
|
|
@ -37,7 +37,7 @@ class SettingsController
|
|||
if (empty($data['ort'])) $errors['ort'] = 'Pflichtfeld';
|
||||
|
||||
if ($errors) {
|
||||
$version = trim(@file_get_contents(dirname(__DIR__, 2) . '/version.txt') ?: '');
|
||||
$version = trim(@file_get_contents(dirname(__DIR__) . '/version.txt') ?: '');
|
||||
$view = new View();
|
||||
$view->render('layout/base.php', [
|
||||
'pageTitle' => 'Einstellungen',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue