[geeklog-cvs] geeklog-1.3/public_html/admin moderation.php,1.51,1.52 story.php,1.126,1.127
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/admin
In directory www:/tmp/cvs-serv22007/public_html/admin
Modified Files:
moderation.php story.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: story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/story.php,v
retrieving revision 1.126
retrieving revision 1.127
diff -C2 -d -r1.126 -r1.127
*** story.php 16 Aug 2004 10:44:45 -0000 1.126
--- story.php 22 Aug 2004 17:53:22 -0000 1.127
***************
*** 936,940 ****
// Get the related URLs
! $related = addslashes (STORY_whatsRelated ("$introtext $bodytext", $uid, $tid));
// Clean up the text
--- 936,940 ----
// Get the related URLs
! $related = addslashes (implode ("\n", STORY_extractLinks ("$introtext $bodytext")));
// Clean up the text
Index: moderation.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/moderation.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** moderation.php 16 Aug 2004 10:44:45 -0000 1.51
--- moderation.php 22 Aug 2004 17:53:22 -0000 1.52
***************
*** 539,543 ****
$result = DB_query ("SELECT * FROM {$_TABLES['storysubmission']} where sid = '$mid[$i]'");
$A = DB_fetchArray ($result);
! $A['related'] = addslashes (STORY_whatsRelated ($A['introtext'], $A['uid'], $A['tid']));
$A['owner_id'] = $A['uid'];
$A['title'] = addslashes ($A['title']);
--- 539,543 ----
$result = DB_query ("SELECT * FROM {$_TABLES['storysubmission']} where sid = '$mid[$i]'");
$A = DB_fetchArray ($result);
! $A['related'] = addslashes (implode ("\n", STORY_extractLinks ($A['introtext'])));
$A['owner_id'] = $A['uid'];
$A['title'] = addslashes ($A['title']);
More information about the geeklog-cvs
mailing list