Skip to content
Snippets Groups Projects
Commit 6b8df128 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Update StartpageController.php

parent 670cd834
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -23,7 +23,7 @@ class StartpageController extends Controller ...@@ -23,7 +23,7 @@ class StartpageController extends Controller
$theme = "default"; $theme = "default";
foreach ($request->all() as $key => $value) { foreach ($request->all() as $key => $value) {
if ($value === 'on' && $key != 'param_sprueche' && $key != 'param_newtab' && $key !== 'param_maps' && $key !== 'param_autocomplete') { if ($value === 'on' && $key != 'param_sprueche' && $key != 'param_newtab' && $key !== 'param_maps' && $key !== 'param_autocomplete' && $key !== 'param_lang') {
$focusPages[] = str_replace('param_', '', $key); $focusPages[] = str_replace('param_', '', $key);
} }
if ($key === 'param_theme') { if ($key === 'param_theme') {
...@@ -46,7 +46,7 @@ class StartpageController extends Controller ...@@ -46,7 +46,7 @@ class StartpageController extends Controller
->with('autocomplete', $request->input('param_autocomplete', 'on')) ->with('autocomplete', $request->input('param_autocomplete', 'on'))
->with('foki', $this->loadFoki()) ->with('foki', $this->loadFoki())
->with('focus', $request->input('focus', 'web')) ->with('focus', $request->input('focus', 'web'))
->with('lang', $lang) ->with('lang', $request->input('param_lang', $lang))
->with('resultCount', $request->input('param_resultCount', '20')) ->with('resultCount', $request->input('param_resultCount', '20'))
->with('time', $request->input('param_time', '1500')) ->with('time', $request->input('param_time', '1500'))
->with('sprueche', $request->input('param_sprueche', 'on')) ->with('sprueche', $request->input('param_sprueche', 'on'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment