Always use native mb_* functions.
This commit is contained in:
include
plugins/serendipity_plugin_history
@ -217,7 +217,7 @@ class serendipity_plugin_history extends serendipity_plugin
|
||||
echo '<span class="serendipity_history_date">' . $date . ' </span>';
|
||||
}
|
||||
$t = ($maxlength==0 || strlen($e[$x]['title']) <= $maxlength) ? $e[$x]['title']
|
||||
: (trim(serendipity_mb('substr', $e[$x]['title'], 0, $maxlength-3)).' [...]');
|
||||
: (trim(mb_substr($e[$x]['title'], 0, $maxlength-3)).' [...]');
|
||||
echo '<a href="' . $url . '" title="' . str_replace("'", "`", serendipity_specialchars($e[$x]['title'])) . '">"' . serendipity_specialchars($t) . '"</a></div>';
|
||||
if ($full) {
|
||||
echo '<div class="serendipity_history_body">' . strip_tags($e[$x]['body']) . '</div>';
|
||||
@ -229,4 +229,4 @@ class serendipity_plugin_history extends serendipity_plugin
|
||||
}
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user