summaryrefslogtreecommitdiff
path: root/comments_inc.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-06-16 22:25:40 +0000
committerChristian Fowler <spider@viovio.com>2006-06-16 22:25:40 +0000
commit84e048365ba14cb111b340cc6829aa7ad304842a (patch)
treefdad14b977aa5dc6bfe4ec003399ccb7d9cb967b /comments_inc.php
parent6ad6e340e130d849d89b7b57f29cb4c0b4c02d56 (diff)
downloadliberty-84e048365ba14cb111b340cc6829aa7ad304842a.tar.gz
liberty-84e048365ba14cb111b340cc6829aa7ad304842a.tar.bz2
liberty-84e048365ba14cb111b340cc6829aa7ad304842a.zip
small _by_ref optimization
Diffstat (limited to 'comments_inc.php')
-rw-r--r--comments_inc.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/comments_inc.php b/comments_inc.php
index 7e74b27..fae8a37 100644
--- a/comments_inc.php
+++ b/comments_inc.php
@@ -3,12 +3,12 @@
* comment_inc
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.13 $
+ * @version $Revision: 1.14 $
* @package liberty
* @subpackage functions
*/
-// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.13 2006/04/12 15:39:19 sylvieg Exp $
+// $Header: /cvsroot/bitweaver/_bit_liberty/comments_inc.php,v 1.14 2006/06/16 22:25:40 spiderr Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
@@ -173,7 +173,8 @@ if( !@BitBase::verifyId( $commentsParentId ) ) {
$comments = $gComment->getComments( $parents, $maxComments, $commentOffset, $comments_sort_mode, $comments_display_style );
$numComments = $gComment->getNumComments( $commentsParentId );
}
-$gBitSmarty->assign('comments', $comments);
+
+$gBitSmarty->assign_by_ref('comments', $comments);
$gBitSmarty->assign('maxComments', $maxComments);
$numCommentPages = ceil( $numComments / $maxComments );