[geeklog-cvs] geeklog-1.3/public_html article.php,1.51,1.52 submit.php,1.73,1.74
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sun Aug 22 13:53:24 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv22007/public_html
Modified Files:
article.php submit.php
Log Message:
Changes so that the links for the What's Related block are stored in the database again, instead of having to parse the story every time it is rendered.
Index: submit.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/submit.php,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** submit.php 16 Aug 2004 10:44:44 -0000 1.73
--- submit.php 22 Aug 2004 17:53:20 -0000 1.74
***************
*** 675,679 ****
$result = DB_query ("SELECT * FROM {$_TABLES['topics']} WHERE tid='{$A['tid']}'");
$T = DB_fetchArray ($result);
! $related = addslashes (STORY_whatsRelated ($introtext, $A['uid'], $A['tid']));
DB_save ($_TABLES['stories'], 'sid,uid,tid,title,introtext,related,date,commentcode,postmode,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon', "{$A['sid']},{$A['uid']},'{$A['tid']}','{$A['title']}','{$A['introtext']}','{$related}',NOW(),{$_CONF['comment_code']},'{$A['postmode']}',{$A['uid']},{$T['group_id']},{$T['perm_owner']},{$T['perm_group']},{$T['perm_members']},{$T['perm_anon']}");
--- 675,679 ----
$result = DB_query ("SELECT * FROM {$_TABLES['topics']} WHERE tid='{$A['tid']}'");
$T = DB_fetchArray ($result);
! $related = addslashes (implode ("\n", STORY_extractLinks ($introtext)));
DB_save ($_TABLES['stories'], 'sid,uid,tid,title,introtext,related,date,commentcode,postmode,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon', "{$A['sid']},{$A['uid']},'{$A['tid']}','{$A['title']}','{$A['introtext']}','{$related}',NOW(),{$_CONF['comment_code']},'{$A['postmode']}',{$A['uid']},{$T['group_id']},{$T['perm_owner']},{$T['perm_group']},{$T['perm_members']},{$T['perm_anon']}");
Index: article.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/article.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** article.php 16 Aug 2004 10:44:44 -0000 1.51
--- article.php 22 Aug 2004 17:53:20 -0000 1.52
***************
*** 189,194 ****
. urlencode ($printUrl) . '">' . $LANG11[5] . '</a>';
}
! $related = STORY_whatsRelated ($A['introtext'] . ' '
! . $A['bodytext'], $A['uid'], $A['tid']);
if (!empty ($related)) {
$related = COM_startBlock ($LANG11[1], '',
--- 189,193 ----
. urlencode ($printUrl) . '">' . $LANG11[5] . '</a>';
}
! $related = STORY_whatsRelated ($A['related'], $A['uid'], $A['tid']);
if (!empty ($related)) {
$related = COM_startBlock ($LANG11[1], '',
More information about the geeklog-cvs
mailing list