aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-09 11:28:04 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-09 11:28:04 +0200
commit42f3bb2c6346e04d2837f980bf685f7e32a61a21 (patch)
tree7d419190ff7f5cd0bf3b94168ff614a5ebdd93a3 /src/Wallabag
parente9056dd96f9e8c2e06b5752b8de767bbedfc71ea (diff)
downloadwallabag-42f3bb2c6346e04d2837f980bf685f7e32a61a21.tar.gz
wallabag-42f3bb2c6346e04d2837f980bf685f7e32a61a21.tar.zst
wallabag-42f3bb2c6346e04d2837f980bf685f7e32a61a21.zip
Use Locale instead of Language
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php4
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;
7use Wallabag\CoreBundle\Entity\Entry; 7use Wallabag\CoreBundle\Entity\Entry;
8use Wallabag\CoreBundle\Tools\Utils; 8use Wallabag\CoreBundle\Tools\Utils;
9use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser; 9use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser;
10use Symfony\Component\Validator\Constraints\Language as LanguageConstraint; 10use Symfony\Component\Validator\Constraints\Locale as LocaleConstraint;
11use Symfony\Component\Validator\Constraints\Url as UrlConstraint; 11use Symfony\Component\Validator\Constraints\Url as UrlConstraint;
12use Symfony\Component\Validator\Validator\ValidatorInterface; 12use 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)) {