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
a29f221c
authored
2018-11-21 12:48:03 +0800
by
Jonille Arreglo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update
1 parent
783c9be5
Hide 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 @
a29f221
...
...
@@ -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