mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 03:12:55 +09:00
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:
parent
f3c3adc5d4
commit
a1a14d4b76
6 changed files with 89 additions and 53 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue