Skip to content

Commit

Permalink
Merge pull request #3 from magmodules/release/1.1.3
Browse files Browse the repository at this point in the history
Release/1.1.3
  • Loading branch information
Marvin-Magmodules authored Oct 14, 2021
2 parents 1dc5ec2 + ad267ff commit aea557f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions app/code/local/Magmodules/Ekomisnippets/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down Expand Up @@ -76,4 +79,4 @@ function getEkomiStars($rating)
return $html;
}

}
}
2 changes: 1 addition & 1 deletion app/code/local/Magmodules/Ekomisnippets/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<config>
<modules>
<Magmodules_Ekomisnippets>
<version>1.1.2</version>
<version>1.1.3</version>
</Magmodules_Ekomisnippets>
</modules>
<global>
Expand Down

0 comments on commit aea557f

Please sign in to comment.