Changeset 221


Ignore:
Timestamp:
07/05/10 08:58:56 (19 months ago)
Author:
fuze
Message:

Исправлен вывод последних комментариев в ленте пользователя. Большие комментарии обрезаются, BB-коды в выводе отсутствуют.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fuze/core/classes/user.class.php

    r218 r221  
    420420        while ($comment = $inDB->fetch_assoc($result)){ 
    421421            $comment['pubdate'] = $inCore->dateFormat($comment['pubdate']); 
    422             if (sizeof($comment['content'])>50){ 
    423                 $comment['content'] = substr($comment['content'], 0, 50) . '...'; 
    424             } 
     422                        $comment['content'] = strip_tags($inCore->parseSmiles($comment['content'], true)); 
     423                        if (strlen($comment['content'])>70) {  
     424                                $comment['content'] = substr($comment['content'], 0, 70). '...'; 
     425                        } 
     426                        if (!$comment['content']) { $comment['content'] = '...'; } 
    425427            $comments[] = $comment; 
    426428        } 
Note: See TracChangeset for help on using the changeset viewer.