Skip to content

Commit

Permalink
For when _locale is passed in, but empty / false. Fixes a quirk in Bo…
Browse files Browse the repository at this point in the history
…lt 3.3
  • Loading branch information
bobdenotter authored Jun 2, 2017
1 parent dedaee5 commit 5d2bea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/LocalizedUrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(UrlGeneratorInterface $wrapped, Application $app)
*/
public function generate($name, $parameters = [], $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH)
{
if (!isset($parameters['_locale']) && $name !== "thumb") {
if (empty($parameters['_locale']) && $name !== "thumb") {
$parameters['_locale'] = $this->app['translate.slug'];
}

Expand Down

0 comments on commit 5d2bea2

Please sign in to comment.