mirror of
https://github.com/flarum/framework.git
synced 2025-03-23 22:45:12 +08: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:
parent
a905fbd073
commit
13e79e5457
@ -40,6 +40,8 @@ return [
|
||||
->belongsToMany('mentionsPosts', Post::class, 'post_mentions_post', 'post_id', 'mentions_post_id')
|
||||
->belongsToMany('mentionsUsers', User::class, 'post_mentions_user', 'post_id', 'mentions_user_id'),
|
||||
|
||||
new Extend\Locales(__DIR__.'/locale'),
|
||||
|
||||
function (Dispatcher $events, Factory $views) {
|
||||
$events->listen(WillSerializeData::class, Listener\FilterVisiblePosts::class);
|
||||
$events->subscribe(Listener\AddPostMentionedByRelationship::class);
|
||||
|
0
extensions/mentions/locale/.gitkeep
Normal file
0
extensions/mentions/locale/.gitkeep
Normal file
Loading…
x
Reference in New Issue
Block a user