Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit d903f66

Browse files
author
Billy Clark
committed
code review feedback
1 parent 600ff0d commit d903f66

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

themes/material/default/selectidp-links.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,10 @@ function clickedAnyway(idpName) {
3131
<span class="mdl-layout-title">
3232
<?php
3333
$spName = $this->data['spName'] ?? null;
34-
if (! empty($spName)) {
35-
?>
36-
<?= $this->t('{material:selectidp:header-for-sp}', ['{spName}' => $spName]) ?>
37-
<?php
34+
if (empty($spName)) {
35+
echo $this->t('{material:selectidp:header}');
3836
} else {
39-
?>
40-
<?= $this->t('{material:selectidp:header}') ?>
41-
<?php
37+
echo htmlentities($this->t('{material:selectidp:header-for-sp}', ['{spName}' => $spName]));
4238
}
4339
?>
4440
</span>

0 commit comments

Comments
 (0)