From 7ebb65be54a36595ce2611caa8c280169a78cc43 Mon Sep 17 00:00:00 2001 From: Lukas Kahwe Smith Date: Sat, 5 Oct 2013 12:04:22 +0200 Subject: [PATCH] fix incorrect typo fix --- Voter/UriPrefixVoter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Voter/UriPrefixVoter.php b/Voter/UriPrefixVoter.php index eaa4bd1d..27a80424 100644 --- a/Voter/UriPrefixVoter.php +++ b/Voter/UriPrefixVoter.php @@ -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; }