Commit d18c8d07 authored by Dominik Hebeler's avatar Dominik Hebeler

Die Setting für die Maps wird nun auch korrekt von der Startseite zur Ergebnisseite übertragen.

Karten werden für die Uni Mainz nicht mehr angezeigt
parent 40028829
......@@ -28,7 +28,7 @@ class StartpageController extends Controller
$focusPages = [];
$theme = "default";
foreach ($request->all() as $key => $value) {
if ($value === 'on' && $key != 'param_sprueche' && $key != 'param_tab') {
if ($value === 'on' && $key != 'param_sprueche' && $key != 'param_tab' && $key !== 'param_maps') {
$focusPages[] = str_replace('param_', '', $key);
}
if ($key === 'param_theme') {
......@@ -36,6 +36,8 @@ class StartpageController extends Controller
}
}
$maps = $request->input('param_maps', 'on');
$agent = new Agent();
$browser = $agent->browser();
......@@ -51,7 +53,8 @@ class StartpageController extends Controller
->with('focusPages', $focusPages)
->with('browser', $browser)
->with('navbarFocus', 'suche')
->with('theme', $theme);
->with('theme', $theme)
->with('maps', $maps);
}
public function loadPage($subpage)
......
......@@ -245,6 +245,7 @@ class MetaGer
$this->ads = [];
$this->products = [];
$this->validated = true;
$this->maps = false;
}
}
......
......@@ -188,6 +188,7 @@
<input type="hidden" name="time" value={{ $time }} >
<input type="hidden" name="sprueche" value={{ $sprueche }} >
<input type="hidden" name="tab" value={{ $tab }} >
<input type="hidden" name="maps" value={{ $maps }} >
@foreach ($focusPages as $fp)
<input type="hidden" name={{ $fp }} value="on">
@endforeach
......
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