mirror of
https://github.com/flarum/core.git
synced 2025-07-25 02:31:17 +02:00
Update RouteCollection.php
This commit is contained in:
@@ -90,11 +90,8 @@ class RouteCollection
|
||||
public function getPath($name, array $parameters = [])
|
||||
{
|
||||
$parts = $this->reverse[$name][0];
|
||||
|
||||
array_walk($parts, [$this, 'fixPathPart'], $parameters);
|
||||
$path = implode('', $parts);
|
||||
|
||||
$path = '/' . ltrim($path, '/');
|
||||
$path = '/' . ltrim(implode('', $parts), '/');
|
||||
return $path;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user