Commit 98ea0c0e by Taylor Otwell

fix bug in url::to.

parent 8240b2ff
...@@ -27,8 +27,7 @@ class URL { ...@@ -27,8 +27,7 @@ class URL {
{ {
$base = $url; $base = $url;
} }
elseif (isset($_SERVER['HTTP_HOST']))
if (isset($_SERVER['HTTP_HOST']))
{ {
$protocol = (Request::secure()) ? 'https://' : 'http://'; $protocol = (Request::secure()) ? 'https://' : 'http://';
......
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