fix bug in url::to.

This commit is contained in:
Taylor Otwell
2012-02-06 22:48:34 -06:00
parent 8240b2ffd1
commit 98ea0c0e6f

View File

@@ -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://';