Commit 2ed1db9c authored by Phil Höfer's avatar Phil Höfer

Update MetaGer.php

parent bfee7671
......@@ -209,9 +209,6 @@ class MetaGer
}
$this->results = $newResults;
# Boost implementation
$this->results = $this->parseBoost($this->results);
#Adgoal Implementation
$this->results = $this->parseAdgoal($this->results);
......@@ -390,22 +387,6 @@ class MetaGer
}
public function parseBoost($results)
{
foreach ($results as $result) {
if (preg_match('/^(http[s]?\:\/\/)?(www.)?amazon\.de/', $result->anzeigeLink)) {
if (preg_match('/\?/', $result->anzeigeLink)) {
$result->link .= '&tag=boostmg01-21';
} else {
$result->link .= '?tag=boostmg01-21';
}
$result->partnershop = true;
}
}
return $results;
}
public function parseAdgoal($results)
{
$publicKey = getenv('adgoal_public');
......
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