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 ...@@ -42,11 +42,11 @@ class OpenImmoImportService
*/ */
public function getZipFiles() public function getZipFiles()
{ {
if (chdir('.Build/Web/uploads/')) { if (!chdir(ConfigurationService::getDataFolder())) {
return glob('*.zip'); throw new \RuntimeException('Directory ' . ConfigurationService::getDataFolder() . ' does not exist!');
} else {
throw new \RuntimeException('Directory .Build/Web/uploads/ 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