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

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

parents b373c185 4d8b1102
...@@ -210,7 +210,7 @@ class MetaGer ...@@ -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'); 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; break;
case 'atom10': 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'); ->header('Content-Type', 'application/xml');
break; break;
case 'result-count': case 'result-count':
......
...@@ -25,5 +25,13 @@ ...@@ -25,5 +25,13 @@
</content> </content>
</entry> </entry>
@endforeach @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 @endif
</feed> </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