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
b0aba615
Commit
b0aba615
authored
May 27, 2021
by
Dominik Hebeler
Browse files
fixed deprecated function call
parent
c2fae452
Changes
2
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/SettingsController.php
View file @
b0aba615
...
@@ -56,7 +56,7 @@ class SettingsController extends Controller
...
@@ -56,7 +56,7 @@ class SettingsController extends Controller
$cookies
=
Cookie
::
get
();
$cookies
=
Cookie
::
get
();
$settingActive
=
false
;
$settingActive
=
false
;
foreach
(
$cookies
as
$key
=>
$value
)
{
foreach
(
$cookies
as
$key
=>
$value
)
{
if
(
\
st
arts_with
(
$key
,
[
$fokus
.
"_engine_"
,
$fokus
.
"_setting_"
]
)
||
strpos
(
$key
,
$fokus
.
'_blpage'
)
===
0
||
$key
===
'dark_mode'
||
$key
===
'new_tab'
||
$key
===
'key'
||
$key
===
'zitate'
)
{
if
(
st
ripos
(
$key
,
$fokus
.
"_engine_"
)
===
0
||
stripos
(
$key
,
$fokus
.
"_setting_"
)
===
0
||
strpos
(
$key
,
$fokus
.
'_blpage'
)
===
0
||
$key
===
'dark_mode'
||
$key
===
'new_tab'
||
$key
===
'key'
||
$key
===
'zitate'
)
{
$settingActive
=
true
;
$settingActive
=
true
;
}
}
}
}
...
@@ -250,7 +250,7 @@ class SettingsController extends Controller
...
@@ -250,7 +250,7 @@ class SettingsController extends Controller
$cookies
=
Cookie
::
get
();
$cookies
=
Cookie
::
get
();
foreach
(
$cookies
as
$key
=>
$value
)
{
foreach
(
$cookies
as
$key
=>
$value
)
{
if
(
\
st
arts_with
(
$key
,
[
$fokus
.
"_engine_"
,
$fokus
.
"_setting_"
]
))
{
if
(
st
ripos
(
$key
,
$fokus
.
"_engine_"
)
===
0
||
stripos
(
$key
,
$fokus
.
"_setting_"
)
===
0
)
{
$path
=
\
Request
::
path
();
$path
=
\
Request
::
path
();
$cookiePath
=
"/"
.
substr
(
$path
,
0
,
strpos
(
$path
,
"meta/"
)
+
5
);
$cookiePath
=
"/"
.
substr
(
$path
,
0
,
strpos
(
$path
,
"meta/"
)
+
5
);
Cookie
::
queue
(
$key
,
""
,
0
,
$cookiePath
,
null
,
false
,
false
);
Cookie
::
queue
(
$key
,
""
,
0
,
$cookiePath
,
null
,
false
,
false
);
...
...
composer.lock
View file @
b0aba615
This diff is collapsed.
Click to expand it.
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