1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-22 17:18:37 +00:00

Use Locale instead of Language

This commit is contained in:
Jeremy Benoist 2017-06-09 11:28:04 +02:00
parent e9056dd96f
commit 42f3bb2c63
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 80 additions and 16 deletions

View file

@ -7,7 +7,7 @@ use Psr\Log\LoggerInterface;
use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Tools\Utils;
use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser;
use Symfony\Component\Validator\Constraints\Language as LanguageConstraint;
use Symfony\Component\Validator\Constraints\Locale as LocaleConstraint;
use Symfony\Component\Validator\Constraints\Url as UrlConstraint;
use Symfony\Component\Validator\Validator\ValidatorInterface;
@ -176,7 +176,7 @@ class ContentProxy
{
$errors = $this->validator->validate(
$value,
(new LanguageConstraint())
(new LocaleConstraint())
);
if (0 === count($errors)) {