diff --git a/app/Http/Controllers/StartpageController.php b/app/Http/Controllers/StartpageController.php index 21eca379ec0d9e17ae55c32e4804ff83b9f43764..e2763fd434d6a5cfba978c95075e6f9b78933dd9 100644 --- a/app/Http/Controllers/StartpageController.php +++ b/app/Http/Controllers/StartpageController.php @@ -83,7 +83,6 @@ class StartpageController extends Controller $response = Response::make( view('plugin') ->with('link', $link) - ->with('hostname', gethostname()) , "200"); $response->header('Content-Type', "application/opensearchdescription+xml"); return $response; diff --git a/resources/views/plugin.blade.php b/resources/views/plugin.blade.php index cf85ddec5c244a319e52eb41fb9b42f575fcf512..12ea7e01562f019ad36f31e8f0ed1d21d382b2cb 100644 --- a/resources/views/plugin.blade.php +++ b/resources/views/plugin.blade.php @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" ?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"> - <ShortName>MetaGer ({{ $hostname }})</ShortName> + <ShortName>@if(env('APP_ENV', '') === "production") MetaGer @else MetaGer (Entwicklungsversion) @endif</ShortName> <Description>{{ trans('plugin.description') }}</Description> <Contact>office@suma-ev.de</Contact> <Image width="16" height="16" type="image/x-icon">{{ url('/favicon.ico') }}</Image>