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

Fix for statistics field presentation when name was not set. and added som...

Fix for statistics field presentation when name was not set. and added som parameters in config template

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1506 44740490-163a-0410-bde0-09ae8108e29a
parent 0a297474
No related branches found
No related tags found
No related merge requests found
...@@ -5,14 +5,15 @@ ...@@ -5,14 +5,15 @@
$config = array ( $config = array (
// Access control on statistics page.
'protected' => FALSE, 'protected' => FALSE,
'auth' => 'admin',
'useridattr' => 'eduPersonPrincipalName',
/* 'default' => 'sso_hoursweek',
* Which authenticatino source should be used for authentication exception from admin module.
* Set to NULL if only using admin auth. 'allowedUsers' => array(
*/ 'admin'
//'auth' => 'feide', ),
'default' => 'sso_hoursweek', 'default' => 'sso_hoursweek',
......
...@@ -9,8 +9,11 @@ class sspmod_statistics_Statistics_FieldPresentation_Entity extends sspmod_stati ...@@ -9,8 +9,11 @@ class sspmod_statistics_Statistics_FieldPresentation_Entity extends sspmod_stati
$translation = array('_' => 'All services'); $translation = array('_' => 'All services');
foreach($this->fields AS $field) { foreach($this->fields AS $field) {
if (array_key_exists($field, $metadata)) if (array_key_exists($field, $metadata)) {
$translation[$field] = $this->template->t($metadata[$field]['name'], array(), FALSE); if (array_key_exists('name', $metadata[$field])) {
$translation[$field] = $this->template->t($metadata[$field]['name'], array(), FALSE);
}
}
} }
return $translation; return $translation;
} }
......
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