From 32d10acf79b7f61fc69e6a7a044b8c8434d15bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Tue, 8 Jan 2013 15:52:31 +0100 Subject: [PATCH] // initialize also the link in config.inc.php for retrocompatibility --- config/config.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/config.inc.php b/config/config.inc.php index db7685b5d..52cac6ac1 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -175,6 +175,10 @@ if (!isset($language) || !Validate::isLoadedObject($language)) $language = new Language(Configuration::get('PS_LANG_DEFAULT')); Context::getContext()->language = $language; +/* Link should also be initialized in the context here for retrocompatibility */ +$https_link = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://'; +Context::getContext()->link = new Link($https_link, $https_link); + /** * @deprecated : these defines are going to be deleted on 1.6 version of Prestashop * USE : Configuration::get() method in order to getting the id of order state