// Add meta tag content-language in FO

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14578 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-04-11 14:21:48 +00:00
parent c6f23c7710
commit abc2a436fc
2 changed files with 8 additions and 1 deletions

View File

@@ -294,6 +294,11 @@ class FrontControllerCore extends Controller
$display_tax_label = $country->display_tax_label;
}
$languages = Language::getLanguages(true, $this->context->shop->id);
$meta_language = array();
foreach ($languages as $lang)
$meta_language[] = $lang['iso_code'];
$this->context->smarty->assign(array(
// Usefull for layout.tpl
'mobile_device' => $this->context->getMobileDevice(),
@@ -312,7 +317,8 @@ class FrontControllerCore extends Controller
'come_from' => Tools::getHttpHost(true, true).Tools::htmlentitiesUTF8(str_replace('\'', '', urldecode($_SERVER['REQUEST_URI']))),
'cart_qties' => (int)$cart->nbProducts(),
'currencies' => Currency::getCurrencies(),
'languages' => Language::getLanguages(true, $this->context->shop->id),
'languages' => $languages,
'meta_language' => implode('-', $meta_language),
'priceDisplay' => Product::getTaxCalculationMethod(),
'add_prod_display' => (int)Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
'shop_name' => Configuration::get('PS_SHOP_NAME'),