Commit 69ebb136 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Werbung wird nun auch bei einer angepassten Suche ohne Werbeanbieter eingeschaltet

parent b45fa8dc
...@@ -292,25 +292,16 @@ class MetaGer ...@@ -292,25 +292,16 @@ class MetaGer
if($this->fokus === "angepasst") if($this->fokus === "angepasst")
{ {
$sumas = $xml->xpath("suma"); $sumas = $xml->xpath("suma");
/**$maxSumas = 30;
$count = 0;
foreach($sumas as $suma)
{
if($maxSumas === $count)
break;
$enabledSearchengines[] = $suma;
$count++;
}**/
foreach($sumas as $suma) foreach($sumas as $suma)
{ {
if($request->has($suma["service"]) if($request->has($suma["service"])
#|| ( $this->fokus !== "bilder" || ( $this->fokus !== "bilder"
# && ($suma["name"]->__toString() === "qualigo" && ($suma["name"]->__toString() === "qualigo"
# || $suma["name"]->__toString() === "similar_product_ads" || $suma["name"]->__toString() === "similar_product_ads"
# || ( !$overtureEnabled && $suma["name"]->__toString() === "overtureAds" ) || ( !$overtureEnabled && $suma["name"]->__toString() === "overtureAds" )
# ) )
# ) )
#|| 1 === 1 #Todo: entfernen
){ ){
if(!(isset($suma['disabled']) && $suma['disabled']->__toString() === "1")) if(!(isset($suma['disabled']) && $suma['disabled']->__toString() === "1"))
......
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