mirror of
https://github.com/flarum/core.git
synced 2025-08-02 22:47:33 +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:
@@ -30,6 +30,8 @@ return [
|
|||||||
(new Extend\Model(Post::class))
|
(new Extend\Model(Post::class))
|
||||||
->default('is_approved', true),
|
->default('is_approved', true),
|
||||||
|
|
||||||
|
new Extend\Locales(__DIR__.'/locale'),
|
||||||
|
|
||||||
function (Dispatcher $events) {
|
function (Dispatcher $events) {
|
||||||
$events->subscribe(Listener\AddPostApprovalAttributes::class);
|
$events->subscribe(Listener\AddPostApprovalAttributes::class);
|
||||||
$events->subscribe(Listener\ApproveContent::class);
|
$events->subscribe(Listener\ApproveContent::class);
|
||||||
|
0
extensions/approval/locale/.gitkeep
Normal file
0
extensions/approval/locale/.gitkeep
Normal file
Reference in New Issue
Block a user