[geeklog-cvs] geeklog: Fixed casing of getSid (as reported in bug #0001283)
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Mar 20 12:47:37 EDT 2011
changeset 8191:1ac85b5d217d
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/1ac85b5d217d
user: Dirk Haun <dirk at haun-online.de>
date: Sun Mar 20 16:23:02 2011 +0100
description:
Fixed casing of getSid (as reported in bug #0001283)
diffstat:
system/lib-story.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 1b12a4548aa2 -r 1ac85b5d217d system/lib-story.php
--- a/system/lib-story.php Sat Mar 19 19:20:34 2011 -0400
+++ b/system/lib-story.php Sun Mar 20 16:23:02 2011 +0100
@@ -355,7 +355,7 @@
if( $story->DisplayElements('comments') > 0 )
{
- $result = DB_query( "SELECT UNIX_TIMESTAMP(date) AS day,username,fullname,{$_TABLES['comments']}.uid as cuid FROM {$_TABLES['comments']},{$_TABLES['users']} WHERE {$_TABLES['users']}.uid = {$_TABLES['comments']}.uid AND sid = '".$story->getsid()."' ORDER BY date desc LIMIT 1" );
+ $result = DB_query( "SELECT UNIX_TIMESTAMP(date) AS day,username,fullname,{$_TABLES['comments']}.uid as cuid FROM {$_TABLES['comments']},{$_TABLES['users']} WHERE {$_TABLES['users']}.uid = {$_TABLES['comments']}.uid AND sid = '".$story->getSid()."' ORDER BY date DESC LIMIT 1" );
$C = DB_fetchArray( $result );
$recent_post_anchortag = '<span class="storybyline">'
@@ -373,7 +373,7 @@
{
$article->set_var( 'comments_with_count', $comments_with_count);
$recent_post_anchortag = COM_createLink($LANG01[60],
- $_CONF['site_url'] . '/comment.php?sid=' . $story->getsid()
+ $_CONF['site_url'] . '/comment.php?sid=' . $story->getSid()
. '&pid=0&type=article');
}
if( $story->DisplayElements( 'commentcode' ) == 0 )
More information about the geeklog-cvs
mailing list