Merge pull request #1014 from jasonlewis/feature/root-bundles

Allow bundles to respond to root requests.
This commit is contained in:
Taylor Otwell
2012-09-01 17:26:35 -07:00
2 changed files with 7 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ class Bundle {
foreach (static::$bundles as $key => $value)
{
if (isset($value['handles']) and starts_with($uri, $value['handles'].'/'))
if (isset($value['handles']) and starts_with($uri, $value['handles'].'/') or $value['handles'] == '/')
{
return $key;
}