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

Commit 7ebb65b

Browse files
committed
fix incorrect typo fix
1 parent abef78a commit 7ebb65b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Voter/UriPrefixVoter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function matchItem(ItemInterface $item)
5454

5555
if ($content instanceof Route && $content->hasOption('currentUriPrefix')) {
5656
$currentUriPrefix = $content->getOption('currentUriPrefix');
57-
$currentUriPrefix = str_replace('{_locale_}', $this->request->getLocale(), $currentUriPrefix);
57+
$currentUriPrefix = str_replace('{_locale}', $this->request->getLocale(), $currentUriPrefix);
5858
if (0 === strncmp($this->request->getPathinfo(), $currentUriPrefix, strlen($currentUriPrefix))) {
5959
return true;
6060
}

0 commit comments

Comments
 (0)