mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 07:42:48 +08:00
Fix check for whether there is a translation for a group name
This commit is contained in:
parent
119d1721e0
commit
953f81176b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user