Skip to content

Commit

Permalink
Some more missed commits
Browse files Browse the repository at this point in the history
  • Loading branch information
wisskid committed Aug 7, 2023
1 parent 3750c64 commit 0750fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compile/Modifier/CountCharactersModifierCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function compile($params, \Smarty\Compiler\Template $compiler) {
if (!isset($params[ 1 ]) || $params[ 1 ] !== 'true') {
return 'preg_match_all(\'/[^\s]/' . \Smarty\Smarty::$_UTF8_MODIFIER . '\',' . $params[ 0 ] . ', $tmp)';
}
return 'mb_strlen(' . $params[ 0 ] . ', \'' . addslashes(\Smarty\Smarty::$_CHARSET) . '\')';
return 'mb_strlen((string) ' . $params[ 0 ] . ', \'' . addslashes(\Smarty\Smarty::$_CHARSET) . '\')';
}

}

0 comments on commit 0750fd7

Please sign in to comment.