[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:26:20 +0000 (13:26 +0200)
commit133a9be324048cf04af940f12b15fc3af21fed26
tree0299b322fc20115955e8a0f4b6c57c0477b95800
parent1c873d50e0c16b4c80e4f7f30e7f468e33888ab4
[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: I96446430bd0681e9f64c699bca9f80866a712490
Resolves: #25368
Reviewed-on: http://review.typo3.org/1955
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
tests/typo3/sysext/cms/tslib/tslib_contentTest.php
typo3/sysext/cms/tslib/class.tslib_content.php