Commit 61227fa1 authored by Dominik Hebeler's avatar Dominik Hebeler

Merge branch 'development' of https://gitlab.metager3.de/open-source/MetaGer into development

parents b373c185 4d8b1102
......@@ -210,7 +210,7 @@ class MetaGer
return response()->view('resultpages.metager3resultsatom10', ['results' => $viewResults, 'eingabe' => $this->eingabe, 'metager' => $this, 'resultcount' => sizeof($viewResults), 'key' => $this->apiKey, 'apiAuthorized' => $this->apiAuthorized])->header('Content-Type', 'application/xml');
break;
case 'atom10':
return response()->view('resultpages.metager3resultsatom10', ['results' => $viewResults, 'eingabe' => $this->eingabe, 'metager' => $this, 'resultcount' => sizeof($viewResults), 'apiAuthorized' => true])
return response()->view('resultpages.metager3resultsatom10', ['results' => $viewResults, 'eingabe' => $this->eingabe, 'metager' => $this, 'resultcount' => sizeof($viewResults), 'key' => $this->apiKey, 'apiAuthorized' => true])
->header('Content-Type', 'application/xml');
break;
case 'result-count':
......
......@@ -25,5 +25,13 @@
</content>
</entry>
@endforeach
@else
<ad:advertisement>
<ad:callOut type="TEXT">Fehler</ad:callOut>
<ad:title type="TEXT">Falscher Schlüssel angegeben</ad:title>
<ad:displayUrl type="TEXT">https://metager.de/meta/key</ad:displayUrl>
<ad:subTitle type="TEXT">Sie haben einen ungültigen Schlüssel angegeben</ad:subTitle>
<link href="https://metager.de/meta/key" />
</ad:advertisement>
@endif
</feed>
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