From: Raphaƫl Gertz Date: Sun, 25 Feb 2018 05:06:44 +0000 (+0100) Subject: Cleanup X-Git-Tag: 0.1~62 X-Git-Url: https://git.rapsys.eu/blogbundle/commitdiff_plain/edc90a4f13c7ef5a88987a4d4cb9fdc692a9a0a7?ds=inline;hp=d469b7bf0d80ae60fe5536c50333d8145e02b3e4 Cleanup --- diff --git a/Controller/DefaultController.php b/Controller/DefaultController.php index b9316f2..2e72eb2 100644 --- a/Controller/DefaultController.php +++ b/Controller/DefaultController.php @@ -5,15 +5,14 @@ namespace Rapsys\BlogBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { - /** - * Redirect on first supported language version - */ + //Redirect on first supported language version public function rootAction() { //Set default locale $locale = 'en'; //Supported application languages - $supportedLanguage = explode('|', $this->getParameter('blog.locales')); + //XXX: Array for route validation is not supported by default (rapsys patch) + $supportedLanguage = $this->getParameter('blog.locales'); //Language list if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {