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

Commit f473509

Browse files
committed
Removed unused function showIcon() in disco-tpl.php
1 parent 710c40c commit f473509

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
1010
- Added possibility to change display name in attribute 'fullDisplayName' in metadata
1111
- If user's last selected IdP is known then show only this IdP and button to show all IdPs
1212
- Set autofocus on previously selected IdP if exist
13+
- Removed unused function showIcon() in disco-tpl.php
1314

1415
#### Fixed
1516
- Fixed the bug in 'getEntitylesAttribute' function to return correct value of Entityless attribute

themes/perun/perun/disco-tpl.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,6 @@ function showEntry($t, $metadata, $favourite = false)
247247

248248
$html .= '<strong>' . $t->getTranslatedEntityName($metadata) . '</strong>';
249249

250-
$html .= showIcon($metadata);
251-
252250
$html .= '</a>';
253251

254252
return $html;
@@ -288,25 +286,6 @@ function showTaggedEntry($t, $metadata, $showSignInWith = false)
288286
return $html;
289287
}
290288

291-
292-
function showIcon($metadata)
293-
{
294-
$html = '';
295-
// Logos are turned off, because they are loaded via URL from IdP. Some IdPs have bad configuration,
296-
// so it breaks the WAYF.
297-
298-
/*if (isset($metadata['UIInfo']['Logo'][0]['url'])) {
299-
$html .= '<img src="' .
300-
htmlspecialchars(\SimpleSAML\Utils\HTTP::resolveURL($metadata['UIInfo']['Logo'][0]['url'])) .
301-
'" class="idp-logo">';
302-
} else if (isset($metadata['icon'])) {
303-
$html .= '<img src="' . htmlspecialchars(\SimpleSAML\Utils\HTTP::resolveURL($metadata['icon'])) .
304-
'" class="idp-logo">';
305-
}*/
306-
307-
return $html;
308-
}
309-
310289
function getOr()
311290
{
312291
$or = '<div class="hrline">';

0 commit comments

Comments
 (0)