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 21:48:53 -04:00
parent 660b62808f
commit 95269bfb68
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ return [
(new Extend\Model(Post::class))
->default('is_approved', true),
new Extend\Locales(__DIR__.'/locale'),
function (Dispatcher $events) {
$events->subscribe(Listener\AddPostApprovalAttributes::class);
$events->subscribe(Listener\ApproveContent::class);

View File