Commit 5b829e84 authored by Davide Aprea's avatar Davide Aprea

added black list to settings count on resultpage

parent fd95b4d8
......@@ -1744,10 +1744,24 @@ class MetaGer
{
$cookies = \Cookie::get();
$count = 0;
$checkBlacklist = true;
$sumaFile = MetaGer::getLanguageFile();
$sumaFile = json_decode(file_get_contents($sumaFile), true);
$foki = array_keys($sumaFile['foki']);
foreach ($cookies as $key => $value) {
if (starts_with($key, [$this->getFokus() . "_setting_", $this->getFokus() . "_engine_"])) {
$count++;
continue;
}
if($checkBlacklist){
foreach($foki as $fokus){
if(strpos($key, $fokus . '_blpage') === 0){
$count++;
$checkBlacklist = false;
}
}
}
}
return $count;
......
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