X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/06d85d868aa5a36bb83575d3cd9df95d3011320d..8ee159cb1c4f9e24fba88bf60e7f9d14542f729c:/Controller/DefaultController.php?ds=sidebyside 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'])) {