Fixed pre requisite checker paths (fixes #748)

This commit is contained in:
Bernd Bestel
2020-04-17 19:57:22 +02:00
parent b4a480aa37
commit 356cdf4991
3 changed files with 16 additions and 16 deletions

View File

@@ -17,9 +17,9 @@ class PrerequisiteChecker
private function checkForConfigFile()
{
if (!file_exists(__DIR__ . '/../data/config.php'))
if (!file_exists(GROCY_DATAPATH . '/config.php'))
{
throw new ERequirementNotMet('/data/config.php not found. Have you copied config-dist.php to the data directory and renamed it to config.php?');
throw new ERequirementNotMet('config.php in data directory (' . GROCY_DATAPATH . ') not found. Have you copied config-dist.php to the data directory and renamed it to config.php?');
}
}