mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 06:43:57 +08:00
Update RouteCollection.php
This commit is contained in:
parent
f3bc7d1c23
commit
04db806995
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user