mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Removed redundant code from Varchar
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70153 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d3a5bcbb7f
commit
e85c00f0c7
@ -48,10 +48,6 @@ class Varchar extends DBField {
|
||||
return str_replace("\n", '\par ', $this->value);
|
||||
}
|
||||
|
||||
/*function forTemplate() {
|
||||
return $this->raw2HTML();
|
||||
}*/
|
||||
|
||||
function LimitCharacters($limit = 20, $add = "...") {
|
||||
$value = trim($this->value);
|
||||
return (strlen($value) > $limit) ? substr($value, 0, $limit) . $add : $value;
|
||||
|
Loading…
Reference in New Issue
Block a user