1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-01 18:32:44 +02:00

Fixed all unchecked usages of possibly undefined constant BOOTSTRAP

This commit is contained in:
Nick Liu
2020-11-28 16:10:05 +01:00
parent b3cc2cf117
commit f20052fa77
7 changed files with 10 additions and 9 deletions

View File

@@ -1308,7 +1308,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(BOOTSTRAP)
if(defined('BOOTSTRAP') && BOOTSTRAP)
{
return e107::getMessage()->addInfo(LAN_NEWS_13)->render();
}