Skip to content

Commit

Permalink
break the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
qpautrat committed Dec 2, 2015
1 parent 3f02d09 commit 2412b14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Router/I18nRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ private function matchI18n(array $params, $url)
foreach($this->hostMap as $locale => $host) {
if ($host == $this->context->getHost()) {
$this->context->setParameter('_locale', $locale);
break;
}
}

Expand Down

0 comments on commit 2412b14

Please sign in to comment.