Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
fix incorrect typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Oct 5, 2013
1 parent abef78a commit 7ebb65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Voter/UriPrefixVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function matchItem(ItemInterface $item)

if ($content instanceof Route && $content->hasOption('currentUriPrefix')) {
$currentUriPrefix = $content->getOption('currentUriPrefix');
$currentUriPrefix = str_replace('{_locale_}', $this->request->getLocale(), $currentUriPrefix);
$currentUriPrefix = str_replace('{_locale}', $this->request->getLocale(), $currentUriPrefix);
if (0 === strncmp($this->request->getPathinfo(), $currentUriPrefix, strlen($currentUriPrefix))) {
return true;
}
Expand Down

0 comments on commit 7ebb65b

Please sign in to comment.