1
0
mirror of https://github.com/flarum/core.git synced 2025-07-16 14:26:25 +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 c23af9550e
commit a4d540f74b

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);
}
/**