mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 14:06:53 +02:00
Flex: Use str_replace() and not strtr()
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user