Skip to content
Snippets Groups Projects
Commit cbc5bec6 authored by Thomas Hackl's avatar Thomas Hackl
Browse files

use custom permission titles if set, re #1185

parent eedae612
No related branches found
No related tags found
No related merge requests found
...@@ -1174,12 +1174,12 @@ function get_title_for_status($type, $count, $sem_type = NULL) ...@@ -1174,12 +1174,12 @@ function get_title_for_status($type, $count, $sem_type = NULL)
$atype = 'title_'.$type; $atype = 'title_'.$type;
$index = $count == 1 ? 0 : 1; $index = $count == 1 ? 0 : 1;
if (isset($SEM_TYPE[$sem_type][$atype][$index])) { $class = $SEM_TYPE[$sem_type]->getClass();
$title = $SEM_TYPE[$sem_type][$atype][$index];
} else if (isset($DEFAULT_TITLE_FOR_STATUS[$type][$index])) { $title = $class->offsetGet($count == 1 ? $atype : $atype . '_plural');
$title = $DEFAULT_TITLE_FOR_STATUS[$type][$index];
} else { if (!$title) {
$title = _('unbekannt'); $title = $DEFAULT_TITLE_FOR_STATUS[$type][$index] ?: _('unbekannt');
} }
return $title; return $title;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment