Skip to content
Snippets Groups Projects
Commit a7444968 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

disable yahoo-ads

parent bd593531
No related branches found
No related tags found
2 merge requests!2229Development,!2228Resolve "Refactor some properties away from sumas.json"
...@@ -88,7 +88,9 @@ class Searchengines ...@@ -88,7 +88,9 @@ class Searchengines
} }
// Enable Yahoo Ads if query is unauthorized and yahoo is disabled // Enable Yahoo Ads if query is unauthorized and yahoo is disabled
if (!app(Authorization::class)->canDoAuthenticatedSearch() && $settings->fokus !== "bilder" && array_key_exists("yahoo", $this->sumas) && array_key_exists("yahoo-ads", $this->sumas)) { // Do not enable yahoo-ads anymore. For now temporarily
// ToDo: Remove or enable again
if (1 == 0 && !app(Authorization::class)->canDoAuthenticatedSearch() && $settings->fokus !== "bilder" && array_key_exists("yahoo", $this->sumas) && array_key_exists("yahoo-ads", $this->sumas)) {
if ($this->sumas["yahoo"]->configuration->disabled === true) { if ($this->sumas["yahoo"]->configuration->disabled === true) {
$this->sumas["yahoo-ads"]->configuration->disabled = false; $this->sumas["yahoo-ads"]->configuration->disabled = false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment