Commit 55379a0a authored by Taylor Otwell's avatar Taylor Otwell

Trim line of code in form class.

parent d392365a
......@@ -87,7 +87,9 @@ class Form {
*/
protected static function action($action, $https)
{
return HTML::entities(URL::to(((is_null($action)) ? Request::uri() : $action), $https));
$uri = (is_null($action)) ? URI::current() : $action;
return HTML::entities(URL::to($uri, $https));
}
/**
......@@ -540,4 +542,4 @@ class Form {
}
}
}
}
\ No newline at end of file
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