Flex: Use str_replace() and not strtr()

This commit is contained in:
Matias Griese
2021-08-30 09:55:21 +03:00
parent 8042caee57
commit f9e7f1c08e
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
* Added meta support for `UploadedFile` class
* Added support for multiple mime-types per file extension [#3422](https://github.com/getgrav/grav/issues/3422)
* Added `setCurrent()` method to Page Collection [#3398](https://github.com/getgrav/grav/pull/3398)
* Initialize `$grav['uri]` before session
* Initialize `$grav['uri']` before session
3. [](#bugfix)
* Fixed `Warning: Undefined array key "SERVER_SOFTWARE" in index.php` [#3408](https://github.com/getgrav/grav/issues/3408)
* Fixed error in `loadDirectoryConfig()` if configuration hasn't been saved [#3409](https://github.com/getgrav/grav/issues/3409)

View File

@@ -239,7 +239,7 @@ class FlexDirectory implements FlexDirectoryInterface
// If configuration is found in main configuration, use it.
if (str_starts_with($uri, 'config://')) {
$path = strtr(substr($uri, 9, -5), '/', '.');
$path = str_replace('/', '.', substr($uri, 9, -5));
return (array)$grav['config']->get($path);
}