[geeklog-cvs] geeklog-1.3/public_html comment.php,1.40,1.41
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Mon Apr 28 08:55:34 EDT 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv19603/public_html
Modified Files:
comment.php
Log Message:
Fixed redirect after posting a comment to a poll.
Index: comment.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/comment.php,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** comment.php 27 Mar 2003 09:37:35 -0000 1.40
--- comment.php 28 Apr 2003 12:55:31 -0000 1.41
***************
*** 268,276 ****
$comments = DB_count($_TABLES['comments'],'sid',$sid);
! if ($type == 1) {
if ($comments > 0) {
DB_change($_TABLES['stories'],'comments',$comments,'sid',$sid);
}
! $retval .= COM_refresh("{$_CONF['site_url']}/pollbooth.php?qid=$sid");
} else {
DB_change($_TABLES['stories'],'comments',$comments,'sid',$sid);
--- 268,276 ----
$comments = DB_count($_TABLES['comments'],'sid',$sid);
! if ($type == 'poll') {
if ($comments > 0) {
DB_change($_TABLES['stories'],'comments',$comments,'sid',$sid);
}
! $retval .= COM_refresh("{$_CONF['site_url']}/pollbooth.php?qid=$sid&aid=-1");
} else {
DB_change($_TABLES['stories'],'comments',$comments,'sid',$sid);
***************
*** 310,323 ****
DB_delete($_TABLES['comments'],'cid',$cid);
! // See if plugin will handle this to update it's records
PLG_handlePluginComment($type,$sid,'delete');
$comments = DB_count($_TABLES['comments'],'sid',$sid);
! if ($type == 1) {
if ($comments > 0) {
DB_change($_TABLES['stories'],'comments',$comments,'sid',$sid);
}
! $retval .= COM_refresh("{$_CONF['site_url']}/pollbooth.php?qid=$sid");
} else {
DB_change($_TABLES['stories'],'comments',$comments,'sid',$sid);
--- 310,323 ----
DB_delete($_TABLES['comments'],'cid',$cid);
! // See if plugin will handle this to update it's records
PLG_handlePluginComment($type,$sid,'delete');
$comments = DB_count($_TABLES['comments'],'sid',$sid);
! if ($type == 'poll') {
if ($comments > 0) {
DB_change($_TABLES['stories'],'comments',$comments,'sid',$sid);
}
! $retval .= COM_refresh("{$_CONF['site_url']}/pollbooth.php?qid=$sid&aid=-1");
} else {
DB_change($_TABLES['stories'],'comments',$comments,'sid',$sid);
More information about the geeklog-cvs
mailing list