Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 0f8f405

Browse files
committed
Merge pull request #77 from melanger/patch-2
Fix double heading
1 parent 25ec194 commit 0f8f405

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
#### Fixed
6+
- Fixed the header on consentform
57

68
## [v3.5.1]
79
#### Fixed

themes/perun/consent/consentform.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ function perun_present_attributes($t, $attributes, $nameParent, $labelCol = 5)
133133

134134
$attributes = $this->data['attributes'];
135135

136-
$this->data['header'] = $this->t('{consent:consent:consent_header}');
136+
$this->data['header'] = $this->t(
137+
'{perun:consent:consent_attributes_header}',
138+
['SPNAME' => $dstName, 'IDPNAME' => $srcName]
139+
);
137140

138141
if (!isset($this->data['head'])) {
139142
$this->data['head'] = '';
@@ -166,13 +169,6 @@ function perun_present_attributes($t, $attributes, $nameParent, $labelCol = 5)
166169
echo "</p>";
167170
}
168171

169-
echo '<h1 id="attributeheader">' .
170-
$this->t(
171-
'{perun:consent:consent_attributes_header}',
172-
['SPNAME' => $dstName, 'IDPNAME' => $srcName]
173-
) .
174-
'</h1>';
175-
176172
echo perun_present_attributes($this, $attributes, '', $this->data['label-col']);
177173

178174
?>

0 commit comments

Comments
 (0)