Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bugfix

  • Loading branch information...
commit 587e688f256a42c004c1367903fd6a76d729b373 1 parent c83ec79
Nibsirahsieu authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/sfNestedCommentTools.class.php
5 lib/sfNestedCommentTools.class.php 100644 → 100755
View
@@ -58,11 +58,11 @@ public static function getComments(BaseObject $commentableObject, sfWebRequest $
}
if (sfNestedCommentConfig::isNestedEnabled())
{
- $comments = $commentableObject->getApprovedCommentsLevel1($page, sfNestedCommentConfig::getMaxPerPageComment());
+ $comments = $commentableObject->getApprovedCommentsLevel1(sfNestedCommentConfig::getMaxPerPageComment(), $page);
}
else
{
- $comments = $commentableObject->getApprovedComments($page, sfNestedCommentConfig::getMaxPerPageComment());
+ $comments = $commentableObject->getApprovedComments(sfNestedCommentConfig::getMaxPerPageComment(), $page);
}
return $comments;
}
@@ -93,6 +93,7 @@ static public function clean($text)
//http://brenelz.com/blog/creating-an-ellipsis-in-php/
public static function ellipsis($text, $append='…')
{
+ $text = strip_tags($text);
$max = sfNestedCommentConfig::getMaxRecentTitleLength();
if (strlen($text) <= $max) return $text;
$out = substr($text,0,$max);
Please sign in to comment.
Something went wrong with that request. Please try again.