mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:00:55 +08:00
Remove HTTP method from generated URLs
This commit is contained in:
parent
ce5ae10b21
commit
29847698c5
@ -80,6 +80,7 @@ class Router
|
||||
public function getPath($name, $parameters = [])
|
||||
{
|
||||
$parts = $this->reverse[$name];
|
||||
array_forget($parts, 'method');
|
||||
|
||||
$path = implode('', array_map(function ($part) use ($parameters) {
|
||||
if (is_array($part)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user