Commit b0aba615 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed deprecated function call

parent c2fae452
...@@ -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 (\starts_with($key, [$fokus . "_engine_", $fokus . "_setting_"]) || strpos($key, $fokus . '_blpage') === 0 || $key === 'dark_mode' || $key === 'new_tab' || $key === 'key' || $key === 'zitate') { if (stripos($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 (\starts_with($key, [$fokus . "_engine_", $fokus . "_setting_"])) { if (stripos($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);
......
This diff is collapsed.
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