[geeklog-hg] geeklog: Fixed comment count for story on comment submission. Wo...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Dec 22 05:12:08 EST 2012
changeset 8890:e4b507626f29
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/e4b507626f29
user: Tom <websitemaster at cogeco.net>
date: Sat Dec 24 09:30:00 2011 -0500
description:
Fixed comment count for story on comment submission. Would be incorrect if another object shared the same id and had a comment (bug# 0001414)
diffstat:
public_html/comment.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 517c71c66f92 -r e4b507626f29 public_html/comment.php
--- a/public_html/comment.php Fri Mar 02 09:41:05 2012 -0500
+++ b/public_html/comment.php Sat Dec 24 09:30:00 2011 -0500
@@ -138,7 +138,7 @@
$type, $LANG03[14], $postmode)
. COM_siteFooter();
} else { // success
- $comments = DB_count($_TABLES['comments'], 'sid', $sid);
+ $comments = DB_count($_TABLES['comments'], array('type', 'sid'), array('article', $sid));
DB_change($_TABLES['stories'], 'comments', $comments, 'sid', $sid);
COM_olderStuff(); // update comment count in Older Stories block
$display = COM_refresh(COM_buildUrl($_CONF['site_url']
@@ -391,6 +391,8 @@
if (!empty ($_REQUEST['formtype'])) {
$formtype = COM_applyFilter ($_REQUEST['formtype']);
}
+
+
switch ($mode) {
case $LANG03[28]: // Preview Changes (for edit)
case $LANG03[34]: // Preview Submission changes (for edit)
More information about the geeklog-cvs
mailing list