Skip to content
Snippets Groups Projects
Commit 3bccc02d authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Use proper directory separator, regardless of the OS

parent b21b15cf
No related branches found
No related tags found
No related merge requests found
......@@ -47,13 +47,13 @@ class Kernel extends BaseKernel
public function getCacheDir(): string
{
$configuration = Configuration::getInstance();
$cachePath = $configuration->getString('tempdir') . '/cache/' . $this->module;
$cachePath = $configuration->getString('tempdir') . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . $this->module;
if (0 === strpos($cachePath, '/')) {
return $cachePath;
}
return $configuration->getBaseDir() . '/' . $cachePath;
return $configuration->getBaseDir() . DIRECTORY_SEPARATOR . $cachePath;
}
......@@ -69,7 +69,7 @@ class Kernel extends BaseKernel
return $loggingPath;
}
return $configuration->getBaseDir() . '/' . $loggingPath;
return $configuration->getBaseDir() . DIRECTORY_SEPARATOR . $loggingPath;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment