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
fb425b13
authored
2018-11-21 04:52:14 +0000
by
Joshua Tundag
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch '11515_encrypted_flag' into 'master'
update FlagManager See merge request
!3
2 parents
0c8ae3b7
a29f221c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/BTFlags/FlagManager.php
src/BTFlags/FlagManager.php
View file @
fb425b1
...
...
@@ -191,7 +191,7 @@ class FlagManager {
if
(
!
empty
(
$_COOKIE
[
$flag
[
'encrypted_name'
]]))
return
$this
->
filterFlag
(
$flag
,
$_COOKIE
[
$flag
[
'encrypted_name'
]],
$defaultValue
);
}
$flagName
=
$flag
[
'is_encrypted'
]
?
$flag
[
'encrypted_name'
]
:
$flag
[
'name'
];
return
!
empty
(
$_GET
[
$flagName
])
?
$this
->
filterFlag
(
$flag
,
$_GET
[
$flagName
],
$defaultValue
)
:
(
!
empty
(
$_COOKIE
[
$flag
[
'encrypted_name'
]])
?
$this
->
filterFlag
(
$flag
,
$_COOKIE
[
$flag
[
'encrypted_name'
]],
$defaultValue
)
:
$defaultValue
);
return
!
empty
(
$_GET
[
$flagName
])
?
$this
->
filterFlag
(
$flag
,
$_GET
[
$flagName
],
$defaultValue
)
:
(
!
empty
(
$_COOKIE
[
$flag
[
'encrypted_name'
]])
?
$this
->
filterFlag
(
$flag
,
$_COOKIE
[
$flag
[
'encrypted_name'
]],
$defaultValue
)
:
array
(
'value'
=>
$defaultValue
,
'cookie_value'
=>
$defaultValue
)
);
}
public
function
getFlag
(
$flag
,
$encrypted
){
...
...
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