Skip to content

Commit

Permalink
delete remove_whitespace filter
Browse files Browse the repository at this point in the history
  • Loading branch information
perdedora committed Mar 29, 2023
1 parent d2bb450 commit 427f3f8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions inc/template.php
Expand Up @@ -92,7 +92,6 @@ public function getFilters()
new Twig\TwigFilter('hasPermission', 'twig_hasPermission_filter'),
new Twig\TwigFilter('date', 'twig_date_filter'),
new Twig\TwigFilter('poster_id', 'poster_id'),
new Twig\TwigFilter('remove_whitespace', 'twig_remove_whitespace_filter'),
new Twig\TwigFilter('count', 'count'),
new Twig\TwigFilter('ago', 'ago'),
new Twig\TwigFilter('until', 'until'),
Expand Down Expand Up @@ -144,10 +143,6 @@ function twig_push_filter($array, $value) {
return $array;
}

function twig_remove_whitespace_filter($data) {
return preg_replace('/[\t\r\n]/', '', $data);
}

function twig_date_filter($date, $format) {
return gmstrftime($format, $date);
}
Expand Down

0 comments on commit 427f3f8

Please sign in to comment.