Skip to content

Commit

Permalink
Fix localeswitcher and twig escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
SvanteRichter committed Apr 13, 2016
1 parent 9b64928 commit 15ffa01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,10 @@ public function renderLocaleSwitcher($template = null)
if($template === null) {
$template = '/twig/_localeswitcher.twig';
}
return $this->app['twig']->render($template, array(
$html = $this->app['twig']->render($template, array(
'locales' => $this->app['config']->get('general/locales')
));
return new \Twig_Markup($html, 'UTF-8');
}

/**
Expand Down

0 comments on commit 15ffa01

Please sign in to comment.