Commit 553f377e authored by Taylor Otwell's avatar Taylor Otwell

Adjusted signature for dynamic route URL creation.

parent 6af79d8b
...@@ -147,6 +147,7 @@ class URL { ...@@ -147,6 +147,7 @@ class URL {
// ---------------------------------------------------- // ----------------------------------------------------
if (strpos($method, 'to_secure_') === 0) if (strpos($method, 'to_secure_') === 0)
{ {
$parameters = (isset($parameters[0])) ? $parameters[0] : array();
return static::to_route(substr($method, 10), $parameters, true); return static::to_route(substr($method, 10), $parameters, true);
} }
...@@ -155,6 +156,7 @@ class URL { ...@@ -155,6 +156,7 @@ class URL {
// ---------------------------------------------------- // ----------------------------------------------------
if (strpos($method, 'to_') === 0) if (strpos($method, 'to_') === 0)
{ {
$parameters = (isset($parameters[0])) ? $parameters[0] : array();
return static::to_route(substr($method, 3), $parameters); return static::to_route(substr($method, 3), $parameters);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment