[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.361,1.362
vinny at iowaoutdoors.org
vinny at iowaoutdoors.org
Mon Aug 16 17:09:25 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv18059
Modified Files:
lib-common.php
Log Message:
Added {story_link} to commentbar.thtml
Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.361
retrieving revision 1.362
diff -C2 -d -r1.361 -r1.362
*** lib-common.php 16 Aug 2004 10:44:44 -0000 1.361
--- lib-common.php 16 Aug 2004 21:09:22 -0000 1.362
***************
*** 68,72 ****
*/
! require_once( '/path/to/geeklog/config.php' );
--- 68,73 ----
*/
! //require_once( '/path/to/geeklog/config.php' );
! require_once( '/home/vmf/work/geeklog-1.3/config.php' );
***************
*** 2488,2491 ****
--- 2489,2501 ----
$commentbar->set_var( 'comment_type', $type );
+ if ( $type == 'poll' )
+ {
+ $commentbar->set_var( 'story_link', $_CONF['site_url'] . "/pollbooth.php?scale=400&qid=$sid&aid=-1" );
+ }
+ else
+ {
+ $commentbar->set_var( 'story_link', $_CONF['site_url'] . "/article.php?story=$sid" );
+ }
+
if( $_USER['uid'] > 1)
{
More information about the geeklog-cvs
mailing list