mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 06:06:16 +02:00
Better support absolute GRAV_SYSTEM_PATH [#3297]
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user