fix grocy locale generation if no data/config.php is present

This commit is contained in:
Katharina Bogad 2021-06-22 13:41:25 +02:00
parent a41584258a
commit 151722ea38

View File

@ -9,7 +9,9 @@ define("GROCY_DATAPATH", __DIR__ . '/../data');
// Load composer dependencies // Load composer dependencies
require_once __DIR__ . '/../vendor/autoload.php'; require_once __DIR__ . '/../vendor/autoload.php';
// Load config files // Load config files
require_once GROCY_DATAPATH . '/config.php'; if(file_exists(GROCY_DATAPATH . '/config.php')) {
require_once GROCY_DATAPATH . '/config.php';
}
require_once __DIR__ . '/../config-dist.php'; // For not in own config defined values we use the default ones require_once __DIR__ . '/../config-dist.php'; // For not in own config defined values we use the default ones
echo "Searching for localizations in " . __DIR__ . '/../localization/* \n'; echo "Searching for localizations in " . __DIR__ . '/../localization/* \n';