Skip to content

Commit

Permalink
// initialize also the link in config.inc.php for retrocompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rGaillard committed Jan 8, 2013
1 parent a05f1db commit 32d10ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config.inc.php
Expand Up @@ -175,6 +175,10 @@
$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
Expand Down

0 comments on commit 32d10ac

Please sign in to comment.