OSDN Git Service

use the original code for parse_short
authorkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 8 Mar 2005 06:50:34 +0000 (06:50 +0000)
committerkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 8 Mar 2005 06:50:34 +0000 (06:50 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@13 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/nucleus/libs/COMMENTS.php

index 1336731..e73736c 100755 (executable)
@@ -381,13 +381,8 @@ class COMMENTACTIONS extends BaseActions {
                        echo $this->currentComment['user'];\r
        }\r
        function parse_short() {\r
-//             $tmp = strtok($this->currentComment['body'],"\n");\r
-//             $tmp = str_replace('<br />','',$tmp);\r
-               $tmp = strip_tags($this->currentComment['body']);\r
-               $tmp = mb_strimwidth($tmp, 0, 60, "...", "UTF-8");\r
-               $tmp = str_replace("\r\n", "\r", $tmp);\r
-               $tmp = str_replace("\r", "\n", $tmp);\r
-               $tmp = str_replace("\n",'&para;',$tmp);\r
+               $tmp = strtok($this->currentComment['body'],"\n");\r
+               $tmp = str_replace('<br />','',$tmp);\r
                echo $tmp;\r
                if ($tmp != $this->currentComment['body'])\r
                        $this->parser->parse($this->template['COMMENTS_CONTINUED']); \r