mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 01:00:20 +02:00
Fixed all unchecked usages of possibly undefined constant BOOTSTRAP
This commit is contained in:
@@ -848,7 +848,7 @@
|
||||
<button class="btn btn-default btn-secondary btn-sm btn-small dropdown-toggle" data-toggle="dropdown">
|
||||
' . LAN_FORUM_8013 . '
|
||||
';
|
||||
if(BOOTSTRAP !== 4)
|
||||
if(defined('BOOTSTRAP') && BOOTSTRAP !== 4)
|
||||
{
|
||||
$text .= '<span class="caret"></span>';
|
||||
}
|
||||
@@ -1144,7 +1144,7 @@
|
||||
' . $replyUrl . '
|
||||
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
';
|
||||
if(BOOTSTRAP !== 4)
|
||||
if(defined('BOOTSTRAP') && BOOTSTRAP !== 4)
|
||||
{
|
||||
$text .= '<span class="caret"></span>';
|
||||
}
|
||||
|
@@ -71,8 +71,9 @@
|
||||
|
||||
function sc_newthreadbuttonx()
|
||||
{
|
||||
$bootstrap = defined('BOOTSTRAP') ? BOOTSTRAP : false;
|
||||
|
||||
if(!BOOTSTRAP)
|
||||
if(!$bootstrap)
|
||||
{
|
||||
return $this->sc_newthreadbutton();
|
||||
}
|
||||
@@ -103,7 +104,7 @@
|
||||
'.($this->var['ntUrl'] ?"":"<span> </span>").'
|
||||
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
||||
';
|
||||
if(BOOTSTRAP !== 4)
|
||||
if($bootstrap !== 4)
|
||||
{
|
||||
$text .= '<span class="caret"></span>';
|
||||
}
|
||||
|
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user