X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/d469b7bf0d80ae60fe5536c50333d8145e02b3e4..edc90a4f13c7ef5a88987a4d4cb9fdc692a9a0a7:/Controller/DefaultController.php?ds=inline 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'])) {