the application url will now be auto-detected.

This commit is contained in:
Taylor Otwell
2011-11-28 23:10:16 -06:00
parent 0897bb4379
commit b7b80d6d49
3 changed files with 31 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class URI {
// Remove the root application URL from the request URI. If the application
// is nested within a sub-directory of the web document root, this will get
// rid of all of the the sub-directories from the request URI.
$uri = static::remove($uri, parse_url(Config::$items['application']['url'], PHP_URL_PATH));
$uri = static::remove($uri, parse_url(URL::base(), PHP_URL_PATH));
if (($index = '/'.Config::$items['application']['index']) !== '/')
{