Merge branch 'master' into loops
Conflicts: core/lib/Thelia/Core/Template/Loop/Category.php core/lib/Thelia/Core/Template/Loop/FeatureValue.php core/lib/Thelia/Core/Template/Loop/Folder.php core/lib/Thelia/Core/Template/Loop/Product.php core/lib/Thelia/Core/Template/Smarty/Plugins/TheliaLoop.php install/faker.php
This commit is contained in:
6
documentation/api/files/Core/TheliaHttpKernel.php.txt
Normal file → Executable file
6
documentation/api/files/Core/TheliaHttpKernel.php.txt
Normal file → Executable file
@@ -131,17 +131,17 @@ class TheliaHttpKernel extends HttpKernel
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @param Request $request
|
||||
* @return null|\Thelia\Model\Lang
|
||||
*/
|
||||
protected function detectLang(Request $request)
|
||||
{
|
||||
$lang = null;
|
||||
//first priority => lang parameter present in request (get or post)
|
||||
if($request->query->has("lang")) {
|
||||
if ($request->query->has("lang")) {
|
||||
$lang = Model\LangQuery::create()->findOneByCode($request->query->get("lang"));
|
||||
|
||||
if(is_null($lang)) {
|
||||
if (is_null($lang)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user