issue 70 article management in document, comment module

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8711 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-08-02 01:49:57 +00:00
parent f3c3adc5d4
commit a1a14d4b76
6 changed files with 89 additions and 53 deletions

View file

@ -644,10 +644,25 @@
}
}
if(count($commentSrlList)) {
if(count($commentSrlList) > 0) {
$oCommentModel = &getModel('comment');
$commentList = $oCommentModel->getComments($commentSrlList);
if(is_array($commentList))
{
foreach($commentList AS $key=>$value)
{
$value->content = strip_tags($value->content);
}
}
}
else
{
global $lang;
$commentList = array();
$this->setMessage($lang->no_documents);
}
$this->add('comment_list', $commentList);
}
}