1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

#3680 - Refine previous commit, check for e_DEBUG

This commit is contained in:
Moc
2021-02-02 20:28:57 +01:00
parent 4345df5340
commit 4fd4a6ed57
2 changed files with 2 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ class cpage_shortcodes extends e_shortcode
if(e107::getPref('comments_disabled') == 0 && !$comflag)
{
if(ADMIN)
if(ADMIN && deftrue('e_DEBUG'))
{
if(defined('BOOTSTRAP') && BOOTSTRAP)
{

View File

@@ -1317,7 +1317,7 @@ class news_front
// 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(ADMIN)
if(ADMIN && deftrue('e_DEBUG'))
{
if(defined('BOOTSTRAP') && BOOTSTRAP)
{