]> Raphaël G. Git Repositories - blogbundle/commitdiff
Cleanup
authorRaphaël Gertz <git@rapsys.eu>
Sun, 25 Feb 2018 05:06:44 +0000 (06:06 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 25 Feb 2018 05:06:44 +0000 (06:06 +0100)
Controller/DefaultController.php

index b9316f272461ae4701d824f01bdf7b2321264b84..2e72eb234ba72a355bc0dad5b4c98045b81232f3 100644 (file)
@@ -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'])) {