1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 13:41:52 +02:00

- 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
No known key found for this signature in database
GPG Key ID: AAEA3CC2C5A308F2
2 changed files with 2 additions and 2 deletions
e107_core/shortcodes/batch
e107_plugins/news

@ -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)
{