[pLog-svn] r2005 - plog/branches/plog-1.0.1/class/dao

oscar at devel.plogworld.net oscar at devel.plogworld.net
Fri May 13 08:47:20 GMT 2005


Author: oscar
Date: 2005-05-13 08:47:19 +0000 (Fri, 13 May 2005)
New Revision: 2005

Modified:
   plog/branches/plog-1.0.1/class/dao/articlecomments.class.php
Log:
fixed issue http://bugs.plogworld.net/view.php?id=499


Modified: plog/branches/plog-1.0.1/class/dao/articlecomments.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/dao/articlecomments.class.php	2005-05-13 07:52:10 UTC (rev 2004)
+++ plog/branches/plog-1.0.1/class/dao/articlecomments.class.php	2005-05-13 08:47:19 UTC (rev 2005)
@@ -42,13 +42,16 @@
 		function addComment( &$comment ) 
         {
 			$filter = new Textfilter();
+			$t = new Timestamp();
+			$timeStamp = $t->getTimestamp();
         	$query = "INSERT INTO ".$this->getPrefix().
 			          "articles_comments (article_id,topic,text,user_name,user_email,
-					                      user_url,parent_id,client_ip,status, normalized_text,normalized_topic) 
+					                      user_url,parent_id,client_ip,status,date,normalized_text,normalized_topic) 
 					   VALUES (".$comment->getArticleId().",'".Db::qstr($comment->getTopic())."','".
 					   Db::qstr($comment->getText())."','".Db::qstr($comment->getUserName())."','".
 					   Db::qstr($comment->getUserEmail())."','".Db::qstr($comment->getUserUrl())."',".
-					   $comment->getParentId().", '".$comment->getClientIp()."', ".$comment->getStatus().", '".
+					   $comment->getParentId().", '".$comment->getClientIp()."', ".$comment->getStatus().",".
+					   $timeStamp.",'".
 					   Db::qstr($filter->normalizeText($comment->getText()))."', '".
 					   Db::qstr($filter->normalizeText($comment->getTopic()))."');";
 




More information about the pLog-svn mailing list