Commit 62f24559 authored by Ben Hayward's avatar Ben Hayward

Fixing tests

1 merge request!337[Sprint/NuancedNumbat](feat): Enable feature flags when staging cookie set. #857
Pipeline #83896115 passed with stages
in 9 minutes and 37 seconds
......@@ -49,7 +49,8 @@ class Manager
{
$features = $this->config->get('features') ?: [];
$featureOverrides ?? json_decode(base64_decode($_COOKIE['staging-features']), true);
$featureOverrides = empty($_COOKIE['staging-features'])
?: json_decode(base64_decode($_COOKIE['staging-features'], true), true);
if ($featureOverrides[$feature]) {
return $featureOverrides[$feature];
}
......
Markdown is supported
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