Merge pull request #945 from aleho/2.3

Use bytcode sequence for unicode ellipsis

Fixes #3356
This commit is contained in:
Mark Story 2012-11-09 09:01:32 -08:00
commit 7e00be8f76

View file

@ -479,7 +479,7 @@ class String {
if (isset($options['ending'])) { if (isset($options['ending'])) {
$default['ellipsis'] = $options['ending']; $default['ellipsis'] = $options['ending'];
} elseif (!empty($options['html']) && Configure::read('App.encoding') == 'UTF-8') { } elseif (!empty($options['html']) && Configure::read('App.encoding') == 'UTF-8') {
$default['ellipsis'] = chr(226); $default['ellipsis'] = "\xE2\x80\xA6";
} }
$options = array_merge($default, $options); $options = array_merge($default, $options);
extract($options); extract($options);