projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
47fa853
)
Ensure all mbstring calls have the charset specified
author
Jordi Boggiano
<j.boggiano@seld.be>
Wed, 23 Mar 2011 15:39:25 +0000 (16:39 +0100)
committer
Jordi Boggiano
<j.boggiano@seld.be>
Wed, 23 Mar 2011 15:39:25 +0000 (16:39 +0100)
lib/Twig/Extension/Core.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Extension/Core.php
b/lib/Twig/Extension/Core.php
index
2d679f9
..
9a34d6a
100644
(file)
--- a/
lib/Twig/Extension/Core.php
+++ b/
lib/Twig/Extension/Core.php
@@
-423,8
+423,8
@@
if (function_exists('mb_get_info')) {
function twig_capitalize_string_filter(Twig_Environment $env, $string)
{
if (null !== ($charset = $env->getCharset())) {
- return mb_strtoupper(mb_substr($string, 0, 1, $charset)).
- mb_strtolower(mb_substr($string, 1, mb_strlen($string), $charset), $charset);
+ return mb_strtoupper(mb_substr($string, 0, 1, $charset), $charset).
+ mb_strtolower(mb_substr($string, 1, mb_strlen($string, $charset), $charset), $charset);
}
return ucfirst(strtolower($string));