X-Git-Url: https://git.rapsys.eu/blogbundle/blobdiff_plain/06d85d868aa5a36bb83575d3cd9df95d3011320d..1feb7bd312fad68537cefaa38f75f8f76fe01534:/Controller/DefaultController.php

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'])) {