mirror of
https://github.com/flarum/framework.git
synced 2025-03-10 04:05:30 +08:00
Fix: Use proper variable for display name drivers in user extender
This commit is contained in:
parent
4e7c4ede50
commit
417e878c0c
@ -24,7 +24,7 @@ class User implements ExtenderInterface
|
||||
*/
|
||||
public function displayNameDriver(string $identifier, $driver)
|
||||
{
|
||||
$this->drivers[$identifier] = $driver;
|
||||
$this->displayNameDrivers[$identifier] = $driver;
|
||||
|
||||
return $this;
|
||||
}
|
||||
@ -32,7 +32,7 @@ class User implements ExtenderInterface
|
||||
public function extend(Container $container, Extension $extension = null)
|
||||
{
|
||||
$container->extend('flarum.user.display_name.supported_drivers', function ($existingDrivers) {
|
||||
return array_merge($existingDrivers, $this->drivers);
|
||||
return array_merge($existingDrivers, $this->displayNameDrivers);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user