Skip to content

Commit

Permalink
Better support absolute GRAV_SYSTEM_PATH [#3297]
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Mar 31, 2021
1 parent 2a4376b commit 4f0f787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion system/src/Grav/Common/Config/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4f0f787

Please sign in to comment.