Revision: 1524
Author:   [email protected]
Date:     Fri Mar  2 15:17:44 2012
Log:      你相信么,我只是为了去除倒霉的空格和调试代码
http://code.google.com/p/typecho/source/detail?r=1524

Modified:
 /trunk/var/Widget/Comments/Archive.php

=======================================
--- /trunk/var/Widget/Comments/Archive.php      Fri Mar  2 15:14:26 2012
+++ /trunk/var/Widget/Comments/Archive.php      Fri Mar  2 15:17:44 2012
@@ -215,9 +215,9 @@
             return;
         }

-               $commentsAuthor = 
Typecho_Cookie::get('__typecho_remember_author');
-               $commentsMail = Typecho_Cookie::get('__typecho_remember_mail');
- $select = $this->select()->where('table.comments.cid = ?', $this->parameter->parentId)
+        $commentsAuthor = Typecho_Cookie::get('__typecho_remember_author');
+        $commentsMail = Typecho_Cookie::get('__typecho_remember_mail');
+ $select = $this->select()->where('table.comments.cid = ?', $this->parameter->parentId) ->where('table.comments.status = ? OR (table.comments.author = ? AND table.comments.mail = ? AND table.comments.status = ?)', 'approved', $commentsAuthor, $commentsMail, 'waiting');
         $threadedSelect = NULL;

@@ -226,7 +226,6 @@
         }

         $select->order('table.comments.coid', 'ASC');
-               //var_dump($select);exit('ff');
         $this->db->fetchAll($select, array($this, 'push'));

         /** 需要输出的评论列表 */
_______________________________________________
announce mailing list
[email protected]
http://lists.typecho.org/mailman/listinfo/announce

回复