mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 13:41:52 +02:00
#3680 - Refine previous commit, check for e_DEBUG
This commit is contained in:
parent
4345df5340
commit
4fd4a6ed57
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user