diff --git a/app/code/local/Magmodules/Ekomisnippets/Helper/Data.php b/app/code/local/Magmodules/Ekomisnippets/Helper/Data.php index ce6b6bb..fc0dc14 100755 --- a/app/code/local/Magmodules/Ekomisnippets/Helper/Data.php +++ b/app/code/local/Magmodules/Ekomisnippets/Helper/Data.php @@ -32,9 +32,12 @@ function getSnapshopRequest() if ($ekomiApiId && $ekomiApiKey) { try { - $api = 'http://api.ekomi.de/v2/wsdl'; - $client = new SoapClient($api, array('exceptions' => 0)); + $defaultSocketTimeout = ini_get('default_socket_timeout'); + ini_set('default_socket_timeout', 1); + $api = 'https://api.ekomi.de/v2/wsdl'; + $client = new SoapClient($api, array('exceptions' => true, 'connection_timeout' => 1)); $sendSnapshotRequest = $client->getSnapshot($ekomiApiId . '|' . $ekomiApiKey, $ekomiVersion); + ini_set('default_socket_timeout', $defaultSocketTimeout); $ret = @unserialize(utf8_decode($sendSnapshotRequest)); if ($ret['done']) { $snippets = $ret['info']; @@ -76,4 +79,4 @@ function getEkomiStars($rating) return $html; } -} \ No newline at end of file +} diff --git a/app/code/local/Magmodules/Ekomisnippets/etc/config.xml b/app/code/local/Magmodules/Ekomisnippets/etc/config.xml index 7d73bc1..ee5eedf 100755 --- a/app/code/local/Magmodules/Ekomisnippets/etc/config.xml +++ b/app/code/local/Magmodules/Ekomisnippets/etc/config.xml @@ -20,7 +20,7 @@ - 1.1.2 + 1.1.3