From 14d1e63333a80db897cc1871c32f2d2658ffb468 Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Fri, 8 Sep 2017 13:27:54 +0200 Subject: [PATCH] Update MetaGer.php --- app/MetaGer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/MetaGer.php b/app/MetaGer.php index a243b1aa7..dfe14975f 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -451,15 +451,15 @@ class MetaGer $info = parse_url($link); if(isset($info["host"])){ $host = $info['host']; + $newurl = $link; if(strpos($host, "amazon") !== FALSE){ # This is Probably an Amazon Link. We'll add our tag as get parameter if(isset($info["query"])){ - $info["query"] .= "&tag=metager04-21"; + $newurl .= "&tag=metager04-21"; }else{ - $info["query"] = "tag=metager04-21"; + $newurl .= "?tag=metager04-21"; } } - $newurl = http_build_url($info); $result->link = $newurl; $result->partnershop = true; } -- GitLab