diff --git a/controllers/front/PropertiesController.php b/controllers/front/PropertiesController.php index 17bd1e291..6736c9ac7 100644 --- a/controllers/front/PropertiesController.php +++ b/controllers/front/PropertiesController.php @@ -132,6 +132,7 @@ class PropertiesControllerCore extends FrontController 'hotelLocationArray' => $hotelLocationArray, 'viewOnMap' => Configuration::get('WK_GOOGLE_ACTIVE_MAP'), 'displayHotelMap' => $displayHotelMap, + 'WK_HTL_SHORT_DESC' => Configuration::get('WK_HTL_SHORT_DESC', $this->context->language->id), 'currentIndex' => $this->context->link->getPageLink('properties') ) ); diff --git a/modules/blocknavigationmenu/classes/WkCustomNavigationLink.php b/modules/blocknavigationmenu/classes/WkCustomNavigationLink.php index deca3d60d..5346c4320 100644 --- a/modules/blocknavigationmenu/classes/WkCustomNavigationLink.php +++ b/modules/blocknavigationmenu/classes/WkCustomNavigationLink.php @@ -169,12 +169,14 @@ class WkCustomNavigationLink extends ObjectModel $objCustomNavigationLink->name[$language['id_lang']] = 'Our hotels'; } + $https_link = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://'; + $objLink = new Link($https_link, $https_link); $objCustomNavigationLink->position = $this->getHigherPosition(); $objCustomNavigationLink->id_cms = 0; $objCustomNavigationLink->show_at_navigation = 1; $objCustomNavigationLink->show_at_footer = 0; $objCustomNavigationLink->active = 1; - $objCustomNavigationLink->link = Context::getContext()->link->getPageLink('properties'); + $objCustomNavigationLink->link = $objLink->getPageLink('properties'); $objCustomNavigationLink->is_custom_link = 1; $objCustomNavigationLink->save();