Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
870c651a
Unverified
Commit
870c651a
authored
6 years ago
by
Tim van Dijen
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Do not reuse variable
parent
f30e97df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/metarefresh/lib/ARP.php
+8
-8
8 additions, 8 deletions
modules/metarefresh/lib/ARP.php
with
8 additions
and
8 deletions
modules/metarefresh/lib/ARP.php
+
8
−
8
View file @
870c651a
...
...
@@ -33,31 +33,31 @@ class ARP
* Constructor
*
* @param array $metadata
* @param string $attributemap
* @param string $attributemap
_filename
* @param string $prefix
* @param string $suffix
*/
public
function
__construct
(
$metadata
,
$attributemap
,
$prefix
,
$suffix
)
public
function
__construct
(
$metadata
,
$attributemap
_filename
,
$prefix
,
$suffix
)
{
$this
->
metadata
=
$metadata
;
$this
->
prefix
=
$prefix
;
$this
->
suffix
=
$suffix
;
if
(
isset
(
$attributemap
))
{
$this
->
loadAttributeMap
(
$attributemap
);
if
(
isset
(
$attributemap
_filename
))
{
$this
->
loadAttributeMap
(
$attributemap
_filename
);
}
}
/**
* @param string $attributemap
* @param string $attributemap
_filename
*
* @return void
*/
private
function
loadAttributeMap
(
$attributemap
)
private
function
loadAttributeMap
(
$attributemap
_filename
)
{
$config
=
\SimpleSAML\Configuration
::
getInstance
();
include
(
$config
->
getPathValue
(
'attributemap'
,
'attributemap/'
)
.
$attributemap
.
'.php'
);
// Note that $attributemap
was a string before the call to include() and is now an array
!
include
(
$config
->
getPathValue
(
'attributemap'
,
'attributemap/'
)
.
$attributemap
_filename
.
'.php'
);
// Note that $attributemap
is defined in the included attributemap-file
!
$this
->
attributes
=
$attributemap
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment