fix bug in url::to.

This commit is contained in:
Taylor Otwell 2012-02-06 22:48:34 -06:00
parent 8240b2ffd1
commit 98ea0c0e6f
1 changed files with 1 additions and 2 deletions

View File

@ -27,8 +27,7 @@ public static function base()
{
$base = $url;
}
if (isset($_SERVER['HTTP_HOST']))
elseif (isset($_SERVER['HTTP_HOST']))
{
$protocol = (Request::secure()) ? 'https://' : 'http://';