Fix #395 (Problem with default language and slugs that is starting with language name)

This commit is contained in:
Benny
2015-10-29 13:44:29 +01:00
parent 658212e7be
commit 9445aa43e6

View File

@@ -162,7 +162,7 @@ class Language
*/
public function setActiveFromUri($uri)
{
$regex = '/(^\/(' . $this->getAvailable() . ')).*/';
$regex = '/(^\/(' . $this->getAvailable() . '))(?:\/.*|$)/i';
// if languages set
if ($this->enabled()) {