Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Janis
/
btflags
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cfd57be7
authored
2019-09-02 07:40:43 +0000
by
Jonille Arreglo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Revert "Merge branch '17459_pci' into 'master'"
This reverts merge request
!5
1 parent
f5e1fc6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
src/BTFlags/FlagManager.php
src/BTFlags/FlagManager.php
View file @
cfd57be
...
...
@@ -156,10 +156,8 @@ class FlagManager {
if
(
!
$flags
)
return
[];
foreach
(
$flags
as
$flag
){
$value
=
$this
->
checkFlag
(
$flag
,
!
empty
(
$flag
[
'default'
])
?
$flag
[
'default'
]
:
null
);
if
(
isset
(
$_GET
[
$flag
[
'name'
]])){
setcookie
(
$flag
[
'name'
],
null
,
time
()
+
(
86400
*
30
),
"/"
);
setcookie
(
$flag
[
'encrypted_name'
],
$value
[
'cookie_value'
],
time
()
+
(
86400
*
30
),
"/"
);
}
setcookie
(
$flag
[
'name'
],
null
,
time
()
+
(
86400
*
30
),
"/"
);
setcookie
(
$flag
[
'encrypted_name'
],
$value
[
'cookie_value'
],
time
()
+
(
86400
*
30
),
"/"
);
}
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment