Skip to content

Commit

Permalink
Merge pull request PrestaShop#11678 from MathiasReker/fix-15
Browse files Browse the repository at this point in the history
Fix use of protocol
  • Loading branch information
Mickaël Andrieu authored Dec 10, 2018
2 parents ad11d44 + 178e219 commit 6ef4baf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions classes/pdf/HTMLTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2018 PrestaShop SA
Expand Down Expand Up @@ -136,7 +136,7 @@ public function assignCommonHeaderData()

$this->smarty->assign(array(
'logo_path' => $path_logo,
'img_ps_dir' => 'http://' . Tools::getMediaServer(_PS_IMG_) . _PS_IMG_,
'img_ps_dir' => Tools::getShopProtocol() . Tools::getMediaServer(_PS_IMG_) . _PS_IMG_,
'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'),
'date' => $this->date,
'title' => $this->title,
Expand Down
2 changes: 1 addition & 1 deletion classes/pdf/HTMLTemplateSupplyOrderForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function getHeader()

$this->smarty->assign(array(
'logo_path' => $path_logo,
'img_ps_dir' => 'http://' . Tools::getMediaServer(_PS_IMG_) . _PS_IMG_,
'img_ps_dir' => Tools::getShopProtocol() . Tools::getMediaServer(_PS_IMG_) . _PS_IMG_,
'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'),
'title' => $this->title,
'reference' => $this->supply_order->reference,
Expand Down
2 changes: 1 addition & 1 deletion controllers/admin/AdminCurrenciesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public function ajaxProcessCronjobLiveExchangeRate()

$enable = (int) Tools::getValue('enable');
$config = Configuration::get('PS_ACTIVE_CRONJOB_EXCHANGE_RATE', null, null, $this->context->shop->id);
$cronJobUrl = 'http://' . ShopUrl::getMainShopDomain($this->context->shop->id) . __PS_BASE_URI__ . basename(_PS_ADMIN_DIR_) . '/cron_currency_rates.php?secure_key=' . md5(_COOKIE_KEY_ . Configuration::get('PS_SHOP_NAME'));
$cronJobUrl = Tools::getShopProtocol() . ShopUrl::getMainShopDomain($this->context->shop->id) . __PS_BASE_URI__ . basename(_PS_ADMIN_DIR_) . '/cron_currency_rates.php?secure_key=' . md5(_COOKIE_KEY_ . Configuration::get('PS_SHOP_NAME'));

if ($config && $enable == 0) {
Configuration::updateValue('PS_ACTIVE_CRONJOB_EXCHANGE_RATE', 0, false, null, $this->context->shop->id);
Expand Down

0 comments on commit 6ef4baf

Please sign in to comment.