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:22:54 -04:00
parent c5deb89fee
commit 2a4e8bf8ad
2 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ return [
->css(__DIR__.'/less/forum.less')
->route('/following', 'following'),
new Extend\Locales(__DIR__.'/locale'),
function (Dispatcher $events, Factory $views) {
$events->listen(Serializing::class, Listener\AddDiscussionSubscriptionAttribute::class);
$events->listen(Saving::class, Listener\SaveSubscriptionToDatabase::class);

View File