small fixes

This commit is contained in:
Julien Chanseaume
2014-05-05 07:22:52 +02:00
parent 6e0e6dddd2
commit bddda57601

View File

@@ -70,7 +70,7 @@ class FeedController extends BaseFrontController {
$this->pageNotFound();
}
// the locale : fr, en,
// the locale : fr_FR, en_US,
if ("" !== $lang) {
if (! $this->checkLang($lang)){
$this->pageNotFound();
@@ -162,7 +162,7 @@ class FeedController extends BaseFrontController {
/**
* Check if a lang is used
*
* @param $lang The lang code. e.g.: fr
* @param $lang string The lang code. e.g.: fr
* @return bool true if the language is used, otherwise false
*/
private function checkLang($lang)
@@ -176,7 +176,7 @@ class FeedController extends BaseFrontController {
/**
* Ckeck if the element exists and is visible
* Check if the element exists and is visible
*
* @param $context string catalog or content
* @param $id string id of the element