[geeklog-cvs] Geeklog-1.x/system lib-comment.php,1.60,1.61
Dirk Haun
dhaun at qs1489.pair.com
Sat Dec 29 07:18:04 EST 2007
Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv35025/system
Modified Files:
lib-comment.php
Log Message:
Added the title as a hidden field in commentbar.thtml so that new comments inherit their parent's title (for plugins)
Index: lib-comment.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-comment.php,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -d -r1.60 -r1.61
*** lib-comment.php 25 Nov 2007 06:55:07 -0000 1.60
--- lib-comment.php 29 Dec 2007 12:18:02 -0000 1.61
***************
*** 3,7 ****
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Geeklog 1.4 |
// +---------------------------------------------------------------------------+
// | lib-comment.php |
--- 3,7 ----
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
! // | Geeklog 1.5 |
// +---------------------------------------------------------------------------+
// | lib-comment.php |
***************
*** 87,94 ****
$commentbar->set_var( 'reply_hidden_or_submit', 'hidden' );
}
- $commentbar->set_var( 'story_title', stripslashes( $title ));
$commentbar->set_var( 'num_comments', COM_numberFormat( $nrows ));
$commentbar->set_var( 'comment_type', $type );
! $commentbar->set_Var( 'sid', $sid );
if( $type == 'article' ) {
--- 87,98 ----
$commentbar->set_var( 'reply_hidden_or_submit', 'hidden' );
}
$commentbar->set_var( 'num_comments', COM_numberFormat( $nrows ));
$commentbar->set_var( 'comment_type', $type );
! $commentbar->set_var( 'sid', $sid );
!
! $cmt_title = stripslashes($title);
! $commentbar->set_var('story_title', $cmt_title);
! $cmt_title = htmlspecialchars($cmt_title);
! $commentbar->set_var('comment_title', $cmt_title);
if( $type == 'article' ) {
More information about the geeklog-cvs
mailing list