From f4b0b247101bbffd153d0e68448052421b905848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phil=20H=C3=B6fer?= <phil@suma-ev.de> Date: Fri, 6 Jul 2018 11:33:20 +0200 Subject: [PATCH] Add hostname to plugin short name --- app/Http/Controllers/StartpageController.php | 1 + resources/views/plugin.blade.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/StartpageController.php b/app/Http/Controllers/StartpageController.php index 5a0470827..c1a92572b 100644 --- a/app/Http/Controllers/StartpageController.php +++ b/app/Http/Controllers/StartpageController.php @@ -115,6 +115,7 @@ class StartpageController extends Controller view('plugin') ->with('link', $link) ->with('params', $params) + ->with('hostname', gethostname()) ->with('request', $request), "200"); $response->header('Content-Type', "application/xml"); return $response; diff --git a/resources/views/plugin.blade.php b/resources/views/plugin.blade.php index d5d0ec5f1..f8d99357c 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</ShortName> + <ShortName>MetaGer ({{ $hostname }})</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> -- GitLab