GX-Bug #51513 » ProductListingTruncateFix.patch
| src/templates/Honeygrid/smarty/function.product_listing.php (revision ) | ||
|---|---|---|
| 165 | 165 |
|
| 166 | 166 |
mb_regex_encoding('UTF-8');
|
| 167 | 167 |
mb_regex_set_options('m');
|
| 168 |
$pattern = '^.{1,' . $options['truncate'] . '}\B[^\s]+';
|
|
| 168 |
$pattern = '^.{1,' . $options['truncate'] . '}\b[^\s]+';
|
|
| 169 | 169 | |
| 170 | 170 |
if(mb_ereg($pattern, html_entity_decode_wrapper($product['PRODUCTS_NAME']), $shortened)) |
| 171 | 171 |
{
|