1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 13:40:20 +02:00

Add empty locale extender to clear cache properly on enable/disable.

See https://github.com/flarum/core/pull/2020#issuecomment-616149583
This commit is contained in:
Alexander Skvortsov
2020-06-19 22:25:40 -04:00
parent 42d7968dfb
commit eb1e364424
2 changed files with 2 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ return [
(new Extend\Model(User::class))
->dateAttribute('suspended_until'),
new Extend\Locales(__DIR__ . '/locale'),
function (Dispatcher $events) {
$events->subscribe(Listener\AddUserSuspendAttributes::class);
$events->subscribe(Listener\RevokeAccessFromSuspendedUsers::class);

View File