Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
df5f6837
Commit
df5f6837
authored
Feb 13, 2017
by
Dominik Hebeler
Browse files
Update StartpageController.php
parent
c4f316aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/StartpageController.php
View file @
df5f6837
...
...
@@ -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'
&&
$key
!==
'param_maps'
&&
$key
!==
'param_autocomplete'
)
{
if
(
$value
===
'on'
&&
$key
!=
'param_sprueche'
&&
$key
!=
'param_
new
tab'
&&
$key
!==
'param_maps'
&&
$key
!==
'param_autocomplete'
)
{
$focusPages
[]
=
str_replace
(
'param_'
,
''
,
$key
);
}
if
(
$key
===
'param_theme'
)
{
...
...
@@ -49,7 +49,7 @@ class StartpageController extends Controller
->
with
(
'resultCount'
,
$request
->
input
(
'param_resultCount'
,
'20'
))
->
with
(
'time'
,
$request
->
input
(
'param_time'
,
'1000'
))
->
with
(
'sprueche'
,
$request
->
input
(
'param_sprueche'
,
'off'
))
->
with
(
'tab'
,
$request
->
input
(
'param_tab'
,
'o
ff
'
))
->
with
(
'tab'
,
$request
->
input
(
'param_
new
tab'
,
'o
n
'
))
->
with
(
'focusPages'
,
$focusPages
)
->
with
(
'browser'
,
$browser
)
->
with
(
'navbarFocus'
,
'suche'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment