Skip to content

Commit

Permalink
#3680 - Refine previous commit, check for e_DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Moc committed Feb 2, 2021
1 parent 4345df5 commit 4fd4a6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e107_core/shortcodes/batch/page_shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function cpagecomments()

if(e107::getPref('comments_disabled') == 0 && !$comflag)
{
if(ADMIN)
if(ADMIN && deftrue('e_DEBUG'))
{
if(defined('BOOTSTRAP') && BOOTSTRAP)
{
Expand Down
2 changes: 1 addition & 1 deletion e107_plugins/news/news.php
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ private function renderComments($news)
// 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)
{
Expand Down

0 comments on commit 4fd4a6e

Please sign in to comment.