1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +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:
Tijn Kuyper
2019-10-02 14:45:50 +02:00
parent 62f8e91be9
commit d3978f3b60
2 changed files with 13 additions and 2 deletions

View File

@@ -164,6 +164,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)
{

View File

@@ -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.")
?>