1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

delete remove_whitespace filter

This commit is contained in:
fowr 2023-03-29 19:13:28 -03:00
parent d2bb450b1a
commit 427f3f8a0a

View File

@ -92,7 +92,6 @@ class Tinyboard extends Twig\Extension\AbstractExtension
new Twig\TwigFilter('hasPermission', 'twig_hasPermission_filter'), new Twig\TwigFilter('hasPermission', 'twig_hasPermission_filter'),
new Twig\TwigFilter('date', 'twig_date_filter'), new Twig\TwigFilter('date', 'twig_date_filter'),
new Twig\TwigFilter('poster_id', 'poster_id'), new Twig\TwigFilter('poster_id', 'poster_id'),
new Twig\TwigFilter('remove_whitespace', 'twig_remove_whitespace_filter'),
new Twig\TwigFilter('count', 'count'), new Twig\TwigFilter('count', 'count'),
new Twig\TwigFilter('ago', 'ago'), new Twig\TwigFilter('ago', 'ago'),
new Twig\TwigFilter('until', 'until'), new Twig\TwigFilter('until', 'until'),
@ -144,10 +143,6 @@ function twig_push_filter($array, $value) {
return $array; return $array;
} }
function twig_remove_whitespace_filter($data) {
return preg_replace('/[\t\r\n]/', '', $data);
}
function twig_date_filter($date, $format) { function twig_date_filter($date, $format) {
return gmstrftime($format, $date); return gmstrftime($format, $date);
} }