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:
@@ -188,7 +188,7 @@ class cpage_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
if(e107::getPref('comments_disabled') == 0 && !$comflag)
|
if(e107::getPref('comments_disabled') == 0 && !$comflag)
|
||||||
{
|
{
|
||||||
if(ADMIN)
|
if(ADMIN && deftrue('e_DEBUG'))
|
||||||
{
|
{
|
||||||
if(defined('BOOTSTRAP') && BOOTSTRAP)
|
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
|
// 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(ADMIN && deftrue('e_DEBUG'))
|
||||||
{
|
{
|
||||||
if(defined('BOOTSTRAP') && BOOTSTRAP)
|
if(defined('BOOTSTRAP') && BOOTSTRAP)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user