From 1650fa8a52ab1e713379ca516389bd7701a38f70 Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Mon, 1 Aug 2016 11:15:57 +0200 Subject: [PATCH] Noch einen Fehler behoben --- app/MetaGer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/MetaGer.php b/app/MetaGer.php index b17dd113d..833ab6384 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -320,7 +320,7 @@ class MetaGer $link = "https://api.smartredirect.de/api_v2/CheckForAffiliateUniversalsearchMetager.php?p=" . $publicKey . "&k=" . $hash . "&tld=" . $tldList . "&q=" . $query; $answer = json_decode(file_get_contents($link)); - + # Nun müssen wir nur noch die Links für die Advertiser ändern: foreach($answer as $el) @@ -337,7 +337,7 @@ class MetaGer $result->image = "https://img.smartredirect.de/logos_v2/120x60/" . $hash . ".gif"; # Den Link hinzufügen: $publicKey = $publicKey; - $targetUrl = $result->link; + $targetUrl = $result->anzeigeLink; if(strpos($targetUrl, "http") !== 0) $targetUrl = "http://" . $targetUrl; $hash = md5($targetUrl . $privateKey); -- GitLab