Fix config page title

main
Yasen Pramatarov 2025-01-26 18:32:29 +02:00
parent eb512c4c1b
commit 299327cf29
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<div class="row mb-4">
<div class="col-12 mb-4">
<h2>Configuration</h2>
<small>Jilo Web configuration file <?= htmlspecialchars($config_file) ?></small>
<small>Jilo Web configuration file: <em><?= htmlspecialchars($localConfigPath) ?></em></small>
<?php if ($configMessage) { ?>
<?= $configMessage ?>
<?php } ?>

View File

@ -79,6 +79,7 @@ foreach ($config_file_locations as $location) {
}
// if found, use it
if ($config_file) {
$localConfigPath = str_replace(__DIR__ . '/..', '', $config_file);
$config = require $config_file;
} else {
die('Config file not found');