[geeklog-cvs] geeklog: Fixed function descriptions as best as I could

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Apr 12 11:39:24 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f794788d8253
changeset: 6926:f794788d8253
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun Apr 12 12:34:06 2009 +0200
description:
Fixed function descriptions as best as I could

diffstat:

1 file changed, 10 insertions(+), 1 deletion(-)
system/lib-comment.php |   11 ++++++++++-

diffs (51 lines):

diff -r 4f787c061bda -r f794788d8253 system/lib-comment.php
--- a/system/lib-comment.php	Sun Apr 12 11:11:10 2009 +0200
+++ b/system/lib-comment.php	Sun Apr 12 12:34:06 2009 +0200
@@ -1459,6 +1459,7 @@
  *
  * @copyright Jared Wenerd 2008
  * @author Jared Wenerd, wenerd87 AT gmail DOT com
+ * @param  string $mode whether to store edited comment in the queue
  * @return string HTML (possibly a refresh)
  */
 function CMT_handleEditSubmit($mode = null)
@@ -1589,11 +1590,11 @@
     
     return $comment;
 }
+
 /**
  * Disables comments for all stories where current time is past comment expire time and 
  * enables comments for certain number of most recent stories.
  *
- * @param   int   cid  comment id
  * @copyright Jared Wenerd 2008
  * @author Jared Wenerd, wenerd87 AT gmail DOT com
  */
@@ -1617,11 +1618,18 @@
     $sql = "UPDATE {$_TABLES['stories']} SET commentcode = 1 WHERE UNIX_TIMESTAMP(comment_expire) < UNIX_TIMESTAMP() AND UNIX_TIMESTAMP(comment_expire) <> 0";
     DB_query($sql);
 }
+
 /**
  * Rebuilds hierarchical data of comments after moderation using recursion.
  *
  * @copyright Jared Wenerd 2008
  * @author Jared Wenerd, wenerd87 AT gmail DOT com
+ * @param  string $sid   id of object comment belongs to
+ * @param  int    $pid   id of parent comment
+ * @param  int    $left  id of left-hand successor
+ * @return int           id of right-hand successor
+ * @see    CMT_deleteComment
+ *
  */
 function CMT_rebuildTree($sid, $pid = 0, $left = 0)
 {
@@ -1639,6 +1647,7 @@
     
     return $right+1;
 }
+
 /**
  * Moves comment from submission table to comments table
  * 



More information about the geeklog-cvs mailing list