OSDN Git Service

<br> -> <br />
[pukiwiki/pukiwiki.git] / plugin / pcomment.inc.php
index 3939207..3f19c69 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: pcomment.inc.php,v 1.14 2003/05/12 10:36:00 arino Exp $
+// $Id: pcomment.inc.php,v 1.16 2003/05/16 05:56:23 arino Exp $
 //
 
 /*
 // ¥Ú¡¼¥¸Ì¾¤Î¥Ç¥Õ¥©¥ë¥È(%s¤Ë$vars['page']¤¬Æþ¤ë)
 define('PCMT_PAGE','[[¥³¥á¥ó¥È/%s]]');
 //
-// ¥Ú¡¼¥¸¤Î¥«¥Æ¥´¥ê(¿·µ¬ºîÀ®»þ¤ËÁÞÆþ)
-//define('PCMT_CATEGORY','[[:Comment]]');
-define('PCMT_CATEGORY','');
-//
 // É½¼¨¤¹¤ë¥³¥á¥ó¥È¿ô¤Î¥Ç¥Õ¥©¥ë¥È
 define('PCMT_NUM_COMMENTS',10);
 //
@@ -219,7 +215,7 @@ function pcmt_insert()
        
        if (!is_page($page))
        {
-               $postdata = PCMT_CATEGORY.' [['.htmlspecialchars(strip_bracket($post['refer']))."]]\n\n-$msg\n";
+               $postdata = '[['.htmlspecialchars(strip_bracket($post['refer']))."]]\n\n-$msg\n";
        }
        else
        {
@@ -383,7 +379,7 @@ function pcmt_get_comments($page,$count,$dir,$reply)
        //¥³¥á¥ó¥È¤Ë¥é¥¸¥ª¥Ü¥¿¥ó¤Î°õ¤ò¤Ä¤±¤ë
        if ($reply)
        {
-               $comments = preg_replace("/\x01(\d+)\x02(.*)\x03/",'<input type="radio" name="reply" value="$2" tabindex="$1" />', $comments);
+               $comments = preg_replace("/<li>\x01(\d+)\x02(.*)\x03/",'<li class="pcmt"><input class="pcmt" type="radio" name="reply" value="$2" tabindex="$1" />', $comments);
        }
        return array($comments,$digest);
 }