Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_comments
In directory sc8-pr-cvs1:/tmp/cvs-serv4278/plugins/serendipity_plugin_comments
Modified Files:
serendipity_plugin_comments.php
Log Message:
Patches from Justin Alcorn to fix embedding and a hard coded db table.
Index: serendipity_plugin_comments.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_comments/serendipity_plugin_comments.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- serendipity_plugin_comments.php 11 Oct 2003 16:51:01 -0000 1.8
+++ serendipity_plugin_comments.php 6 Nov 2003 15:52:29 -0000 1.9
@@ -58,6 +58,7 @@
function generate_content(&$title)
{
+ global $serendipity;
$title = COMMENTS;
$lang = strtolower($this->get_config('language'));
$max_entries = $this->get_config('max_entries');
@@ -103,8 +104,8 @@
e.title AS subject,
e.id AS entry_id,
c.id AS comment_id
- FROM serendipity_comments AS c,
- serendipity_entries AS e
+ FROM '.$serendipity['dbPrefix'].'comments AS c,
+ '.$serendipity['dbPrefix'].'entries AS e
WHERE e.id = c.entry_id
ORDER BY c.timestamp DESC
LIMIT ' . $max_entries;
|