Merge pull request #1226 from akuzemchak/bug/language-routes

Fixes language URI routing issue
This commit is contained in:
Taylor Otwell 2012-09-25 18:34:40 -07:00
commit 4b7dc2e824
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@
foreach ($languages as $language)
{
if (starts_with($uri, $language))
if (preg_match("#^{$language}(?:$|/)#i", $uri))
{
Config::set('application.language', $language);