Permalink
Browse files

BUGFIX: Added default value for limit on LimitCharacters() to prevent…

… backwards-compat issue (fixes 0c3af80)
  • Loading branch information...
1 parent 4d0d579 commit 60ced3b16763060358f0c4fc6db7d36188a0d607 @sminnee sminnee committed Dec 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 model/fieldtypes/StringField.php
View
2 model/fieldtypes/StringField.php
@@ -83,7 +83,7 @@ function prepValueForDB($value) {
* @param string $add Ellipsis to add to the end of truncated string
* @return string
*/
- function LimitCharacters($limit, $add = '...') {
+ function LimitCharacters($limit = 20, $add = '...') {
$value = trim($this->value);
if($this->stat('escape_type') == 'xml') {
$value = strip_tags($value);

0 comments on commit 60ced3b

Please sign in to comment.