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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user