From ed23a25f44765e821d8e14a3f694e8c09639c574 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 18 Oct 2018 19:27:03 +1030 Subject: [PATCH] Don't require paths to be set in config - use sensible defaults --- framework/core/src/Foundation/InstalledApp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Foundation/InstalledApp.php b/framework/core/src/Foundation/InstalledApp.php index e25c30e1a..94d8d570f 100644 --- a/framework/core/src/Foundation/InstalledApp.php +++ b/framework/core/src/Foundation/InstalledApp.php @@ -101,7 +101,7 @@ class InstalledApp implements AppInterface private function subPath($pathName): string { - return '/'.$this->config['paths'][$pathName]; + return '/'.($this->config['paths'][$pathName] ?? $pathName); } /**