cfd57be7 by Jonille Arreglo

Revert "Merge branch '17459_pci' into 'master'"

This reverts merge request !5
1 parent f5e1fc6e
...@@ -156,12 +156,10 @@ class FlagManager { ...@@ -156,12 +156,10 @@ class FlagManager {
156 if(!$flags) return []; 156 if(!$flags) return [];
157 foreach($flags as $flag){ 157 foreach($flags as $flag){
158 $value = $this->checkFlag($flag, !empty($flag['default']) ? $flag['default'] : null); 158 $value = $this->checkFlag($flag, !empty($flag['default']) ? $flag['default'] : null);
159 if(isset($_GET[$flag['name']])){
160 setcookie($flag['name'], null, time() + (86400 * 30), "/"); 159 setcookie($flag['name'], null, time() + (86400 * 30), "/");
161 setcookie($flag['encrypted_name'], $value['cookie_value'], time() + (86400 * 30), "/"); 160 setcookie($flag['encrypted_name'], $value['cookie_value'], time() + (86400 * 30), "/");
162 } 161 }
163 } 162 }
164 }
165 163
166 private function filterFlag($flag, $needle, $defaultValue){ 164 private function filterFlag($flag, $needle, $defaultValue){
167 $this->checkDir(); 165 $this->checkDir();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!