1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 09:41:26 +02:00

Fix check for whether there is a translation for a group name

This commit is contained in:
Toby Zerner
2015-10-31 18:20:55 +10:30
parent ef9e438981
commit b869fb7068

View File

@@ -69,9 +69,9 @@ class GroupSerializer extends AbstractSerializer
*/
private function translateGroupName($name)
{
$translation = $this->translator->trans('core.group.'.strtolower($name));
$translation = $this->translator->trans($key = 'core.group.'.strtolower($name));
if ($translation !== $name) {
if ($translation !== $key) {
return $translation;
}