diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-06-09 11:28:04 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-06-09 11:28:04 +0200 |
commit | 42f3bb2c6346e04d2837f980bf685f7e32a61a21 (patch) | |
tree | 7d419190ff7f5cd0bf3b94168ff614a5ebdd93a3 /src | |
parent | e9056dd96f9e8c2e06b5752b8de767bbedfc71ea (diff) | |
download | wallabag-42f3bb2c6346e04d2837f980bf685f7e32a61a21.tar.gz wallabag-42f3bb2c6346e04d2837f980bf685f7e32a61a21.tar.zst wallabag-42f3bb2c6346e04d2837f980bf685f7e32a61a21.zip |
Use Locale instead of Language
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/ContentProxy.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index f752d37e..e4e7fb31 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php | |||
@@ -7,7 +7,7 @@ use Psr\Log\LoggerInterface; | |||
7 | use Wallabag\CoreBundle\Entity\Entry; | 7 | use Wallabag\CoreBundle\Entity\Entry; |
8 | use Wallabag\CoreBundle\Tools\Utils; | 8 | use Wallabag\CoreBundle\Tools\Utils; |
9 | use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser; | 9 | use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser; |
10 | use Symfony\Component\Validator\Constraints\Language as LanguageConstraint; | 10 | use Symfony\Component\Validator\Constraints\Locale as LocaleConstraint; |
11 | use Symfony\Component\Validator\Constraints\Url as UrlConstraint; | 11 | use Symfony\Component\Validator\Constraints\Url as UrlConstraint; |
12 | use Symfony\Component\Validator\Validator\ValidatorInterface; | 12 | use Symfony\Component\Validator\Validator\ValidatorInterface; |
13 | 13 | ||
@@ -176,7 +176,7 @@ class ContentProxy | |||
176 | { | 176 | { |
177 | $errors = $this->validator->validate( | 177 | $errors = $this->validator->validate( |
178 | $value, | 178 | $value, |
179 | (new LanguageConstraint()) | 179 | (new LocaleConstraint()) |
180 | ); | 180 | ); |
181 | 181 | ||
182 | if (0 === count($errors)) { | 182 | if (0 === count($errors)) { |