Signed-off-by: Aaron Kuzemchak <aaron@kuzemchak.net>
@@ -137,7 +137,7 @@ $languages[] = Config::get('application.language');
foreach ($languages as $language)
{
- if (starts_with($uri, $language))
+ if (preg_match("#^{$language}(/.*)?$#i", $uri))
Config::set('application.language', $language);