Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24327
Modified Files:
functions_comments.inc.php
Log Message:
- Back out the use of references when displaying comments, pending investigation :)
Index: functions_comments.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_comments.inc.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- functions_comments.inc.php 27 Jan 2005 13:54:33 -0000 1.15
+++ functions_comments.inc.php 3 Feb 2005 18:06:49 -0000 1.16
@@ -147,7 +147,7 @@
return $retval;
}
-function serendipity_printComments(&$comments, $parentid = 0, $depth = 0, $trace = null) {
+function serendipity_printComments($comments, $parentid = 0, $depth = 0, $trace = null) {
global $serendipity;
static $_smartyComments;
@@ -204,7 +204,7 @@
if ($depth !== 0) {
return true;
}
-
+
$serendipity['smarty']->assign('comments', $_smartyComments);
unset($_smartyComments);
@@ -235,7 +235,7 @@
if ($sql['status'] !== 'pending') {
serendipity_db_query("UPDATE {$serendipity['dbPrefix']}entries SET $type = $type-1 WHERE id = '". (int)$entry_id ."' $admin");
}
-
+
serendipity_db_query("UPDATE {$serendipity['dbPrefix']}comments SET parent_id = " . (int)$sql['parent_id'] . " WHERE parent_id = '" . (int)$id . "'");
return true;
|