Better support absolute GRAV_SYSTEM_PATH [#3297]

This commit is contained in:
Matias Griese
2021-03-31 10:26:46 +03:00
parent 2a4376b7cb
commit 4f0f7876a8
2 changed files with 3 additions and 3 deletions

View File

@@ -11,9 +11,8 @@
* Fixed moving `Flex Page` to itself causing the page to be lost [#3227](https://github.com/getgrav/grav/issues/3227)
* Fixed `PageStorage` from detecting files as pages
* Fixed `UserIndex` not implementing `UserCollectionInterface`
* Fixed system templates not getting scanned [#3296](https://github.com/getgrav/grav/issues/3296)
* Fixed missing `onAdminAfterDelete` event call in `Flex Pages`
>>>>>>> a8e6aedd043107a3eb2dc47bc7e2509ffb6b6db5
* Fixed system templates not getting scanned [#3296](https://github.com/getgrav/grav/issues/3296)
# v1.7.9
## 03/19/2021

View File

@@ -164,7 +164,8 @@ class Setup extends Data
public function __construct($container)
{
// Configure main streams.
$this->streams['system']['prefixes'][''] = [GRAV_SYSTEM_PATH];
$abs = str_starts_with(GRAV_SYSTEM_PATH, '/');
$this->streams['system']['prefixes'][''] = $abs ? ['system', GRAV_SYSTEM_PATH] : ['system'];
$this->streams['user']['prefixes'][''] = [GRAV_USER_PATH];
$this->streams['cache']['prefixes'][''] = [GRAV_CACHE_PATH];
$this->streams['log']['prefixes'][''] = [GRAV_LOG_PATH];