fix url parsing.

This commit is contained in:
Taylor Otwell
2012-04-04 10:16:15 -05:00
parent a85945561c
commit ffb4034631
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ return array(
|
*/
'profiler' => true,
'profiler' => false,
/*
|--------------------------------------------------------------------------

View File

@@ -61,7 +61,7 @@ class URL {
$base = 'http://localhost';
// If the application URL configuration is set, we will just use that
// If the application's URL configuration is set, we will just use that
// instead of trying to guess the URL from the $_SERVER array's host
// and script variables as this is more reliable.
if (($url = Config::get('application.url')) !== '')
@@ -72,7 +72,7 @@ class URL {
{
$f = Request::foundation();
$base = $f->getScheme().'://'.$f->getHttpHost().$f->getBaseUrl();
$base = $f->getScheme().'://'.$f->getHttpHost().$f->getBasePath();
}
return static::$base = $base;