mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
commit
77166f3a7e
@ -257,10 +257,11 @@ class AdvsController extends PublicController
|
|||||||
$advs[$index] = $this->adv_model->AddAdsDefaultCoverImage($ad);
|
$advs[$index] = $this->adv_model->AddAdsDefaultCoverImage($ad);
|
||||||
|
|
||||||
$foreign_currencies = json_decode($advs[$index]->foreign_currencies, true);
|
$foreign_currencies = json_decode($advs[$index]->foreign_currencies, true);
|
||||||
if ($_COOKIE['currency'] && $advs[$index]->foreign_currencies && array_key_exists($_COOKIE['currency'], $foreign_currencies)) {
|
if (isset($_COOKIE['currency']) && $advs[$index]->foreign_currencies && array_key_exists($_COOKIE['currency'], $foreign_currencies)) {
|
||||||
$advs[$index]->currency = $_COOKIE['currency'];
|
$advs[$index]->currency = $_COOKIE['currency'];
|
||||||
$advs[$index]->price = $foreign_currencies[$_COOKIE['currency']];
|
$advs[$index]->price = $foreign_currencies[$_COOKIE['currency']];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($isActiveCustomFields) {
|
if ($isActiveCustomFields) {
|
||||||
@ -590,7 +591,8 @@ class AdvsController extends PublicController
|
|||||||
$configurations = $this->optionConfigurationRepository->getConf($adv->id);
|
$configurations = $this->optionConfigurationRepository->getConf($adv->id);
|
||||||
|
|
||||||
$foreign_currencies = json_decode($adv->foreign_currencies, true);
|
$foreign_currencies = json_decode($adv->foreign_currencies, true);
|
||||||
if (isset($_COOKIE['currency']) && $_COOKIE['currency'] && $adv->foreign_currencies && array_key_exists($_COOKIE['currency'], $foreign_currencies)) {
|
|
||||||
|
if (isset($_COOKIE['currency']) && $adv->foreign_currencies && array_key_exists($_COOKIE['currency'], $foreign_currencies)) {
|
||||||
$adv->currency = $_COOKIE['currency'];
|
$adv->currency = $_COOKIE['currency'];
|
||||||
$adv->price = $foreign_currencies[$_COOKIE['currency']];
|
$adv->price = $foreign_currencies[$_COOKIE['currency']];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user