summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorMacil Tech <maciltech@gmail.com>2013-03-01 08:42:38 +0800
committerMacil Tech <maciltech@gmail.com>2013-06-18 11:12:31 -0500
commit1d4fced75acc7a39abdceaf7ea563c2b5d131839 (patch)
tree01b45bd5aedd414557c68029a3e635ec59555cdc /inc/display.php
parent3bcc87caf294cd67f221854d1dc13065706f5a81 (diff)
pm_snippet() should probably use mb_substr if it's using mb_strlen.
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/display.php b/inc/display.php
index 57110224..6d8cf366 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -118,7 +118,7 @@ function pm_snippet($body, $len=null) {
// calculate strlen() so we can add "..." after if needed
$strlen = mb_strlen($body);
- $body = substr($body, 0, $len);
+ $body = mb_substr($body, 0, $len);
// Re-escape the characters.
return '<em>' . utf8tohtml($body) . ($strlen > $len ? '&hellip;' : '') . '</em>';