[simplesamlphp] r3398 committed - Honour UIInfo/DisplayName in IdP's metadata in the IdP selection templ...

0 views
Skip to first unread message

simple...@googlecode.com

unread,
Feb 27, 2014, 4:45:25 AM2/27/14
to simplesaml...@googlegroups.com
Revision: 3398
Author: jai...@gmail.com
Date: Thu Feb 27 09:44:19 2014 UTC
Log: Honour UIInfo/DisplayName in IdP's metadata in the IdP selection
templates.
http://code.google.com/p/simplesamlphp/source/detail?r=3398

Modified:
/trunk/templates/selectidp-dropdown.php
/trunk/templates/selectidp-links.php

=======================================
--- /trunk/templates/selectidp-dropdown.php Wed Feb 10 11:32:00 2010 UTC
+++ /trunk/templates/selectidp-dropdown.php Thu Feb 27 09:44:19 2014 UTC
@@ -10,7 +10,9 @@
$this->includeAtTemplateBase('includes/header.php');

foreach ($this->data['idplist'] AS $idpentry) {
- if (isset($idpentry['name'])) {
+ if (isset($idpentry['UIInfo']['DisplayName'])) {
+ $this->includeInlineTranslation('idpname_' . $idpentry['entityid'],
$idpentry['UIInfo']['DisplayName']);
+ } elseif (isset($idpentry['name'])) {
$this->includeInlineTranslation('idpname_' . $idpentry['entityid'],
$idpentry['name']);
} elseif (isset($idpentry['OrganizationDisplayName'])) {
$this->includeInlineTranslation('idpname_' . $idpentry['entityid'],
$idpentry['OrganizationDisplayName']);
=======================================
--- /trunk/templates/selectidp-links.php Thu May 26 10:40:00 2011 UTC
+++ /trunk/templates/selectidp-links.php Thu Feb 27 09:44:19 2014 UTC
@@ -10,7 +10,9 @@
$this->includeAtTemplateBase('includes/header.php');

foreach ($this->data['idplist'] AS $idpentry) {
- if (isset($idpentry['name'])) {
+ if (isset($idpentry['UIInfo']['DisplayName'])) {
+ $this->includeInlineTranslation('idpname_' . $idpentry['entityid'],
$idpentry['UIInfo']['DisplayName']);
+ } elseif (isset($idpentry['name'])) {
$this->includeInlineTranslation('idpname_' . $idpentry['entityid'],
$idpentry['name']);
} elseif (isset($idpentry['OrganizationDisplayName'])) {
$this->includeInlineTranslation('idpname_' . $idpentry['entityid'],
$idpentry['OrganizationDisplayName']);
Reply all
Reply to author
Forward
0 new messages