Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-bbmri
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-module-bbmri
Commits
ed9306dd
Unverified
Commit
ed9306dd
authored
5 years ago
by
Dominik Baránek
Committed by
Pavel Vyskočil
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Using of short array syntax
parent
d3486124
No related branches found
No related tags found
1 merge request
!11
Using of short array syntax
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
themes/bbmri/default/includes/header.php
+8
-8
8 additions, 8 deletions
themes/bbmri/default/includes/header.php
with
9 additions
and
8 deletions
CHANGELOG.md
+
1
−
0
View file @
ed9306dd
...
...
@@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
-
Changed code style to PSR-2
-
addInstitution URL and email in disco-tpl.php are loaded from a config file
-
Templates are included from module perun
-
Using of short array syntax (from array() to [])
#### Fixed
-
Fixed the email address in footer
...
...
This diff is collapsed.
Click to expand it.
themes/bbmri/default/includes/header.php
+
8
−
8
View file @
ed9306dd
...
...
@@ -5,25 +5,25 @@ use SimpleSAML\Module;
/**
* Support the htmlinject hook, which allows modules to change header, pre and post body on all pages.
*/
$this
->
data
[
'htmlinject'
]
=
array
(
'htmlContentPre'
=>
array
()
,
'htmlContentPost'
=>
array
()
,
'htmlContentHead'
=>
array
()
,
)
;
$this
->
data
[
'htmlinject'
]
=
[
'htmlContentPre'
=>
[]
,
'htmlContentPost'
=>
[]
,
'htmlContentHead'
=>
[]
,
]
;
$jquery
=
array
()
;
$jquery
=
[]
;
if
(
array_key_exists
(
'jquery'
,
$this
->
data
))
{
$jquery
=
$this
->
data
[
'jquery'
];
}
if
(
array_key_exists
(
'pageid'
,
$this
->
data
))
{
$hookinfo
=
array
(
$hookinfo
=
[
'pre'
=>
&
$this
->
data
[
'htmlinject'
][
'htmlContentPre'
],
'post'
=>
&
$this
->
data
[
'htmlinject'
][
'htmlContentPost'
],
'head'
=>
&
$this
->
data
[
'htmlinject'
][
'htmlContentHead'
],
'jquery'
=>
&
$jquery
,
'page'
=>
$this
->
data
[
'pageid'
]
)
;
]
;
Module
::
callHooks
(
'htmlinject'
,
$hookinfo
);
}
...
...
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