small fixes
This commit is contained in:
@@ -70,7 +70,7 @@ class FeedController extends BaseFrontController {
|
|||||||
$this->pageNotFound();
|
$this->pageNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
// the locale : fr, en,
|
// the locale : fr_FR, en_US,
|
||||||
if ("" !== $lang) {
|
if ("" !== $lang) {
|
||||||
if (! $this->checkLang($lang)){
|
if (! $this->checkLang($lang)){
|
||||||
$this->pageNotFound();
|
$this->pageNotFound();
|
||||||
@@ -162,8 +162,8 @@ class FeedController extends BaseFrontController {
|
|||||||
/**
|
/**
|
||||||
* Check if a lang is used
|
* 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
|
* @return bool true if the language is used, otherwise false
|
||||||
*/
|
*/
|
||||||
private function checkLang($lang)
|
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 $context string catalog or content
|
||||||
* @param $id string id of the element
|
* @param $id string id of the element
|
||||||
|
|||||||
Reference in New Issue
Block a user