Commit c7e7d645 authored by Taylor Otwell's avatar Taylor Otwell

Refactoring dynamic URLs to routes.

parent 553f377e
......@@ -142,12 +142,13 @@ class URL {
*/
public static function __callStatic($method, $parameters)
{
$parameters = (isset($parameters[0])) ? $parameters[0] : array();
// ----------------------------------------------------
// Dynamically create a secure route URL.
// ----------------------------------------------------
if (strpos($method, 'to_secure_') === 0)
{
$parameters = (isset($parameters[0])) ? $parameters[0] : array();
return static::to_route(substr($method, 10), $parameters, true);
}
......@@ -156,7 +157,6 @@ class URL {
// ----------------------------------------------------
if (strpos($method, 'to_') === 0)
{
$parameters = (isset($parameters[0])) ? $parameters[0] : array();
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