mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-04 04:52:22 +00:00
Fix canonicalize depreciation
This commit is contained in:
parent
3caf65865b
commit
a351b0aada
2 changed files with 2 additions and 2 deletions
|
@ -668,7 +668,7 @@ class ConfigController extends AbstractController
|
|||
*/
|
||||
public function setLocaleAction(Request $request, ValidatorInterface $validator, $language = null)
|
||||
{
|
||||
$errors = $validator->validate($language, (new LocaleConstraint()));
|
||||
$errors = $validator->validate($language, (new LocaleConstraint(['canonicalize' => true])));
|
||||
|
||||
if (0 === \count($errors)) {
|
||||
$request->getSession()->set('_locale', $language);
|
||||
|
|
|
@ -98,7 +98,7 @@ class ContentProxy
|
|||
|
||||
$errors = $this->validator->validate(
|
||||
$value,
|
||||
(new LocaleConstraint())
|
||||
(new LocaleConstraint(['canonicalize' => true]))
|
||||
);
|
||||
|
||||
if (0 === \count($errors)) {
|
||||
|
|
Loading…
Reference in a new issue