summaryrefslogtreecommitdiff
path: root/library/WT/Note.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-09-12 22:05:03 +0100
committerGreg Roach <fisharebest@gmail.com>2014-09-12 22:05:03 +0100
commitce75549277d91441ac24704d67c699e9857ef60a (patch)
tree6cdf052cf1622ad956cceaf33d11830997d576b4 /library/WT/Note.php
parent034e822620d4ab7ab21f8b3387410adb9f7f28c6 (diff)
downloadwebtrees-ce75549277d91441ac24704d67c699e9857ef60a.tar.gz
webtrees-ce75549277d91441ac24704d67c699e9857ef60a.tar.bz2
webtrees-ce75549277d91441ac24704d67c699e9857ef60a.zip
Use the (faster) native mb_string functions where available, and fallbacks where not.
Diffstat (limited to 'library/WT/Note.php')
-rw-r--r--library/WT/Note.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/WT/Note.php b/library/WT/Note.php
index cac24a3549..23c0908f11 100644
--- a/library/WT/Note.php
+++ b/library/WT/Note.php
@@ -85,6 +85,6 @@ class WT_Note extends WT_GedcomRecord {
}
list($text) = explode("\n", $text);
- $this->_addName('NOTE', strlen($text) > 100 ? WT_I18N::substr($text, 0, 100) . WT_I18N::translate('…') : $text, $this->getGedcom());
+ $this->_addName('NOTE', strlen($text) > 100 ? mb_substr($text, 0, 100) . WT_I18N::translate('…') : $text, $this->getGedcom());
}
}