Commit 3415e6e6 authored by Thomas Löffler's avatar Thomas Löffler

Change to use ConfigurationService again

parent 890666b0
......@@ -42,11 +42,11 @@ class OpenImmoImportService
*/
public function getZipFiles()
{
if (chdir('.Build/Web/uploads/')) {
return glob('*.zip');
} else {
throw new \RuntimeException('Directory .Build/Web/uploads/ does not exist!');
if (!chdir(ConfigurationService::getDataFolder())) {
throw new \RuntimeException('Directory ' . ConfigurationService::getDataFolder() . ' does not exist!');
}
return glob('*.zip');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment