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

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 c62c8727
Branches
No related tags found
2 merge requests!619Development,!582Resolve "Settings Maps ausschaltbar machen"
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment