Skip to content
Snippets Groups Projects
Commit fcaf54e5 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Handling multiple name and description languages in metadata

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1207 44740490-163a-0410-bde0-09ae8108e29a
parent 1694905b
No related branches found
No related tags found
No related merge requests found
...@@ -420,19 +420,8 @@ class SimpleSAML_Metadata_SAMLParser { ...@@ -420,19 +420,8 @@ class SimpleSAML_Metadata_SAMLParser {
/* /*
* Add organizational metadata * Add organizational metadata
*/ */
if(array_key_exists('en', $this->organizationName)) { $ret['name'] = $this->organizationDisplayName;
$ret['description'] = $this->organizationName['en']; $ret['description'] = $this->organizationName;
} elseif(count($this->organizationName) > 0) {
$languages = array_keys($this->organizationName);
$ret['description'] = $this->organizationName[$languages[0]];
}
if(array_key_exists('en', $this->organizationDisplayName)) {
$ret['name'] = $this->organizationDisplayName['en'];
} elseif(count($this->organizationDisplayName) > 0) {
$languages = array_keys($this->organizationDisplayName);
$ret['name'] = $this->organizationDisplayName[$languages[0]];
}
if (!empty($this->tags)) { if (!empty($this->tags)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment