mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
Merge branch 'master' of https://github.com/openclassify/openclassify
Conflicts: addons/default/visiosoft/advs-module/src/Http/Controller/advsController.php
This commit is contained in:
commit
d15cadf8da
@ -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 (isset($_COOKIE['currency']) && $_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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user