|
|
@ -91,7 +91,6 @@ class Tinyboard extends Twig\Extension\AbstractExtension |
|
|
|
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'), |
|
|
@ -143,10 +142,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); |
|
|
|
} |
|
|
|