mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Removed @deprecated method Text::LimitWordCountPlainText(): Please use Text::LimitWordCount() instead
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77635 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
cd2a6e0608
commit
ee072565ec
@ -67,16 +67,6 @@ class Text extends DBField {
|
||||
return (strlen($value) > $limit) ? substr($value, 0, $limit) . $add : $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated. Please use {@link LimitWordCount()}
|
||||
*/
|
||||
function LimitWordCountPlainText($numWords = 26) {
|
||||
$ret = $this->LimitWordCount( $numWords );
|
||||
// Use LimitWordCountXML() instead!
|
||||
// return Convert::raw2xml($ret);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Limit the number of words of the current field's
|
||||
* content. This is XML safe, so characters like &
|
||||
|
Loading…
Reference in New Issue
Block a user