[BUGFIX] Also crop when maxCharacters < first word
authorPeter Beernink <p.beernink@drecomm.nl>
Fri, 25 Mar 2011 11:20:27 +0000 (12:20 +0100)
committerSteffen Gebert <steffen.gebert@typo3.org>
Sun, 8 May 2011 11:24:22 +0000 (13:24 +0200)
commit03ff5d091d3eb5bb0573c4be90e325dd2ac943e4
tree2a9a800547ad02a6319739aa95e353cccf0fbf1f
parentb69dcdb1507f86d2e33fb85615a3398fe24a6c65
[BUGFIX] Also crop when maxCharacters < first word

When maxCharacters is equal or less then the length of the first word,
the whole string was returned when 'crop to word' is enabled instead of
the only the cropped part.

Change-Id: I0a7ec720b12a7999245b183f36daff5cdd7a8ace
Resolves: #25368
Reviewed-on: http://review.typo3.org/1274
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
tests/typo3/sysext/cms/tslib/class.tslib_contentTest.php
typo3/sysext/cms/tslib/class.tslib_content.php