From c0f4c01d9ad0864907b6e560a5eeed9213f066d2 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 10 Feb 2010 09:37:09 +0100 Subject: [PATCH] fixed twig_capitalize_string_filter() bug (closes #16) --- lib/Twig/Extension/Core.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 3ae0905..b24b6c4 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -280,7 +280,7 @@ if (function_exists('mb_get_info')) } return mb_strtoupper(mb_substr($string, 0, 1, $env->getCharset())). - mb_strtolower(mb_substr($string, 1, mb_strlen($string), $env->getCharset())); + mb_strtolower(mb_substr($string, 1, mb_strlen($string), $env->getCharset()), $env->getCharset()); } } // and byte fallback -- 1.7.2.5