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