mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
utf-8 compatible text truncate
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/newforumposts_menu.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/newforumposts_menu.php,v $
|
||||||
| $Revision: 1.2 $
|
| $Revision: 1.3 $
|
||||||
| $Date: 2007-05-28 16:52:31 $
|
| $Date: 2007-06-08 19:15:08 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -78,10 +78,7 @@ else
|
|||||||
|
|
||||||
$fi['thread_thread'] = strip_tags($tp->toHTML($fi['thread_thread'], TRUE, "emotes_off, no_make_clickable", "", $pref['menu_wordwrap']));
|
$fi['thread_thread'] = strip_tags($tp->toHTML($fi['thread_thread'], TRUE, "emotes_off, no_make_clickable", "", $pref['menu_wordwrap']));
|
||||||
|
|
||||||
if (strlen($fi['thread_thread']) > $menu_pref['newforumposts_characters'])
|
$fi['thread_thread'] = $tp->text_truncate($fi['thread_thread'], $menu_pref['newforumposts_characters'], $menu_pref['newforumposts_postfix']);
|
||||||
{
|
|
||||||
$fi['thread_thread'] = substr($fi['thread_thread'], 0, $menu_pref['newforumposts_characters']).$menu_pref['newforumposts_postfix'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($menu_pref['newforumposts_title'])
|
if ($menu_pref['newforumposts_title'])
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user