Commit 7c431296 authored by Dominik Hebeler's avatar Dominik Hebeler

Update MetaGer.php

parent f7359a25
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment