1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 15:51:16 +02:00

Don't require paths to be set in config - use sensible defaults

This commit is contained in:
Toby Zerner
2018-10-18 19:27:03 +10:30
parent 805f0b9a47
commit ed23a25f44

View File

@@ -101,7 +101,7 @@ class InstalledApp implements AppInterface
private function subPath($pathName): string
{
return '/'.$this->config['paths'][$pathName];
return '/'.($this->config['paths'][$pathName] ?? $pathName);
}
/**