diff --git a/plugins/Favourite/Favourite.php b/plugins/Favourite/Favourite.php index 752fc600bd..4682954095 100644 --- a/plugins/Favourite/Favourite.php +++ b/plugins/Favourite/Favourite.php @@ -22,7 +22,6 @@ namespace Plugin\Favourite; use App\Core\DB\DB; use App\Core\Event; use App\Core\Form; -use function App\Core\I18n\_m; use App\Core\Module; use App\Entity\Favourite as Fave; use App\Entity\Note; @@ -40,7 +39,7 @@ class Favourite extends Module $form = Form::create([ ['is_set', HiddenType::class, ['data' => $is_set ? '1' : '0']], ['note_id', HiddenType::class, ['data' => $note->getId()]], - ['favourite', SubmitType::class, ['label' => _m('Favourite')]], + ['favourite', SubmitType::class, ['label' => ' ']], ]); $form->handleRequest($request); @@ -63,7 +62,7 @@ class Favourite extends Module } } - $actions[] = $form->createView(); + $actions['post_fav'] = $form->createView(); return Event::next; } } \ No newline at end of file diff --git a/plugins/Repeat/Repeat.php b/plugins/Repeat/Repeat.php index 5830504837..57a6f9c29e 100644 --- a/plugins/Repeat/Repeat.php +++ b/plugins/Repeat/Repeat.php @@ -37,7 +37,7 @@ class Repeat extends Module $form = Form::create([ ['is_set', HiddenType::class, ['data' => $is_set ? '1' : '0']], ['note_id', HiddenType::class, ['data' => $note->getId()]], - ['repeat', SubmitType::class, ['label' => 'Repeat']], + ['repeat', SubmitType::class, ['label' => ' ']], ]); $form->handleRequest($request); @@ -59,7 +59,7 @@ class Repeat extends Module } } - $actions[] = $form->createView(); + $actions['post_repeat'] = $form->createView(); return Event::next; } } \ No newline at end of file