From ff51706bfd60373919e4820601cd697b55dc957a Mon Sep 17 00:00:00 2001 From: Jason Lam <3edgy6u@gmail.com> Date: Fri, 9 May 2014 20:42:57 -0400 Subject: [PATCH] add new truncate_filename filter --- inc/lib/Twig/Extensions/Extension/Tinyboard.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/lib/Twig/Extensions/Extension/Tinyboard.php b/inc/lib/Twig/Extensions/Extension/Tinyboard.php index 960bb844..e5dff993 100644 --- a/inc/lib/Twig/Extensions/Extension/Tinyboard.php +++ b/inc/lib/Twig/Extensions/Extension/Tinyboard.php @@ -13,6 +13,7 @@ class Twig_Extensions_Extension_Tinyboard extends Twig_Extension new Twig_SimpleFilter('filesize', 'format_bytes'), new Twig_SimpleFilter('truncate', 'twig_truncate_filter'), new Twig_SimpleFilter('truncate_body', 'truncate'), + new Twig_SimpleFilter('truncate_filename', 'truncate_filename'), new Twig_SimpleFilter('extension', 'twig_extension_filter'), new Twig_SimpleFilter('sprintf', 'sprintf'), new Twig_SimpleFilter('capcode', 'capcode'),