} // distant | } // distant | ||||
else { | else { | ||||
foreach ($merchants as $merchant) { | foreach ($merchants as $merchant) { | ||||
$url = $merchant->getMerchantSettingValue(MerchantSettingDefinition::SETTING_URL); | |||||
$url = $merchant->getSettingValue(MerchantSettingDefinition::SETTING_URL); | |||||
if ($url && strlen($url) && strpos($url, $_SERVER['HTTP_HOST']) !== false) { | if ($url && strlen($url) && strpos($url, $_SERVER['HTTP_HOST']) !== false) { | ||||
$this->currentMerchant = $merchant; | $this->currentMerchant = $merchant; | ||||
} | } |