mirror of
https://github.com/e107inc/e107.git
synced 2025-08-14 02:24:08 +02:00
Closes #3680 - Add message on pages when global comments are enabled but comments for specific page are disabled
This commit is contained in:
@@ -163,6 +163,18 @@ class cpage_shortcodes extends e_shortcode
|
||||
{
|
||||
$com = $this->var['comments'];
|
||||
$comflag = $this->var['page_comment_flag'];
|
||||
|
||||
if(e107::getPref('comments_disabled') == 0 && !$comflag)
|
||||
{
|
||||
if(BOOTSTRAP)
|
||||
{
|
||||
return e107::getMessage()->addInfo(LAN_PAGE_17)->render();
|
||||
}
|
||||
else
|
||||
{
|
||||
return "<br /><div style='text-align:center'><b>".LAN_PAGE_17."</b></div>";
|
||||
}
|
||||
}
|
||||
|
||||
//if($parm && isset($com[$parm])) return $com[$parm];
|
||||
if($comflag)
|
||||
|
Reference in New Issue
Block a user