mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 04:40:44 +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)
|
||||
|
@@ -25,6 +25,5 @@ define("LAN_PAGE_13", "Page");
|
||||
define("LAN_PAGE_14", "Other Articles");
|
||||
define("LAN_PAGE_15", "Articles");
|
||||
define("LAN_PAGE_16", "There are no chapters in this book");
|
||||
|
||||
|
||||
define("LAN_PAGE_17", "Comments on this page are locked.")
|
||||
?>
|
Reference in New Issue
Block a user