Commit 175dfe7a authored by Dominik Hebeler's avatar Dominik Hebeler

Fixed an error with the settings

parent 05d9e36b
......@@ -660,7 +660,7 @@ class MetaGer
try {
$tmp = new $path($engineName, $engine, $this);
} catch (\ErrorException $e) {
Log::error("Konnte " . $engine->{"display-name"} . " nicht abfragen. " . var_dump($e));
Log::error("Konnte " . $engine->{"display-name"} . " nicht abfragen. " . $e);
continue;
}
......
......@@ -70,6 +70,9 @@ abstract class Searchengine
$filters = $metager->getSumaFile()->filter;
foreach ($metager->getQueryFilter() as $queryFilter => $filter) {
$filterOptions = $filters->{"query-filter"}->$queryFilter;
if (!$filterOptions->sumas->{$this->name}) {
continue;
}
$filterOptionsEngine = $filterOptions->sumas->{$this->name};
$query = $filterOptionsEngine->prefix . $filter . $filterOptionsEngine->suffix;
$q = $query . " " . $q;
......
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