mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Fixes #3455 - Check page comments flag before rendering comments
This commit is contained in:
@@ -162,9 +162,13 @@ class cpage_shortcodes extends e_shortcode
|
||||
function cpagecomments()
|
||||
{
|
||||
$com = $this->var['comments'];
|
||||
//if($parm && isset($com[$parm])) return $com[$parm];
|
||||
$comflag = $this->var['page_comment_flag'];
|
||||
|
||||
//if($parm && isset($com[$parm])) return $com[$parm];
|
||||
if($comflag)
|
||||
{
|
||||
return e107::getComment()->parseLayout($com['comment'],$com['comment_form'],$com['moderate']);
|
||||
}
|
||||
|
||||
// return $com['comment'].$com['moderate'].$com['comment_form'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user