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

handle description not translated

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1221 44740490-163a-0410-bde0-09ae8108e29a
parent 6f32a6c6
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,11 @@ foreach($this->data['sortedOrgIndex'] as $orgkey) {
$res = $this->data['results'][$orgkey];
echo('<tr class="' . ($classes[($i++ % 2)]) . '">');
if (array_key_exists('description', $this->data['orgconfig'][$orgkey])) {
echo('<td>' . htmlspecialchars($this->getTranslation($this->data['orgconfig'][$orgkey]['description'])) . '</td>');
echo('<td>' . htmlspecialchars(
$this->getTranslation(
SimpleSAML_Utilities::arrayize($this->data['orgconfig'][$orgkey]['description'], 'en')
)
) . '</td>');
} else {
echo('<td><span style="color: #b4b4b4; font-size: x-small">NA</span> <tt>' . $orgkey . '</tt></td>');
}
......
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