Skip to content
Snippets Groups Projects
Commit aff999cd authored by Martin Anderson-Clutz's avatar Martin Anderson-Clutz
Browse files

Issue #3382593 by PrabuEla: is_safe not declared correctly on sortbyweight Twig filter

parent e04f0439
Branches 1.0.x
Tags 1.0.1
1 merge request!5Automated Project Update Bot fixes
...@@ -15,9 +15,7 @@ class SortByWeight extends AbstractExtension { ...@@ -15,9 +15,7 @@ class SortByWeight extends AbstractExtension {
*/ */
public function getFilters() { public function getFilters() {
return [ return [
new TwigFilter( new TwigFilter('sortbyweight', [$this, 'performSort']),
'sortbyweight', [$this, 'performSort', 'is_safe' => ['html']]
),
]; ];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment