mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Closes #3680 - Change comments disabled message to admin debug message
This commit is contained in:
@@ -187,16 +187,19 @@ class cpage_shortcodes extends e_shortcode
|
|||||||
$comflag = $this->var['page_comment_flag'];
|
$comflag = $this->var['page_comment_flag'];
|
||||||
|
|
||||||
if(e107::getPref('comments_disabled') == 0 && !$comflag)
|
if(e107::getPref('comments_disabled') == 0 && !$comflag)
|
||||||
|
{
|
||||||
|
if(ADMIN)
|
||||||
{
|
{
|
||||||
if(defined('BOOTSTRAP') && BOOTSTRAP)
|
if(defined('BOOTSTRAP') && BOOTSTRAP)
|
||||||
{
|
{
|
||||||
return e107::getMessage()->addInfo(LAN_PAGE_17)->render();
|
return e107::getMessage()->addDebug(LAN_PAGE_17)->render();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return "<br /><div style='text-align:center'><b>".LAN_PAGE_17."</b></div>";
|
return "<br /><div style='text-align:center'><b>".LAN_PAGE_17."</b></div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//if($parm && isset($com[$parm])) return $com[$parm];
|
//if($parm && isset($com[$parm])) return $com[$parm];
|
||||||
if($comflag)
|
if($comflag)
|
||||||
|
@@ -1316,10 +1316,12 @@ class news_front
|
|||||||
{
|
{
|
||||||
// Only show message if global comments are enabled, but current news item comments are disabled
|
// Only show message if global comments are enabled, but current news item comments are disabled
|
||||||
if(e107::getPref('comments_disabled') == 0 && $news['news_allow_comments'] == 1)
|
if(e107::getPref('comments_disabled') == 0 && $news['news_allow_comments'] == 1)
|
||||||
|
{
|
||||||
|
if(ADMIN)
|
||||||
{
|
{
|
||||||
if(defined('BOOTSTRAP') && BOOTSTRAP)
|
if(defined('BOOTSTRAP') && BOOTSTRAP)
|
||||||
{
|
{
|
||||||
return e107::getMessage()->addInfo(LAN_NEWS_13)->render();
|
return e107::getMessage()->addDebug(LAN_NEWS_13)->render();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1327,6 +1329,7 @@ class news_front
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$this->addDebug("Failed", "renderComments()");
|
$this->addDebug("Failed", "renderComments()");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user