diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/ConfigType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/ConfigType.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php index 3b1a8026..7e3b9dd4 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php | |||
@@ -7,6 +7,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType; | |||
7 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | 7 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; |
8 | use Symfony\Component\Form\FormBuilderInterface; | 8 | use Symfony\Component\Form\FormBuilderInterface; |
9 | use Symfony\Component\OptionsResolver\OptionsResolver; | 9 | use Symfony\Component\OptionsResolver\OptionsResolver; |
10 | use Wallabag\CoreBundle\Entity\Config; | ||
10 | 11 | ||
11 | class ConfigType extends AbstractType | 12 | class ConfigType extends AbstractType |
12 | { | 13 | { |
@@ -51,8 +52,8 @@ class ConfigType extends AbstractType | |||
51 | ->add('action_mark_as_read', ChoiceType::class, [ | 52 | ->add('action_mark_as_read', ChoiceType::class, [ |
52 | 'label' => 'config.form_settings.action_mark_as_read.label', | 53 | 'label' => 'config.form_settings.action_mark_as_read.label', |
53 | 'choices' => [ | 54 | 'choices' => [ |
54 | 'config.form_settings.action_mark_as_read.redirect_homepage' => '0', | 55 | 'config.form_settings.action_mark_as_read.redirect_homepage' => Config::REDIRECT_TO_HOMEPAGE, |
55 | 'config.form_settings.action_mark_as_read.redirect_current_page' => '1', | 56 | 'config.form_settings.action_mark_as_read.redirect_current_page' => Config::REDIRECT_TO_CURRENT_PAGE, |
56 | ], | 57 | ], |
57 | ]) | 58 | ]) |
58 | ->add('language', ChoiceType::class, [ | 59 | ->add('language', ChoiceType::class, [ |