1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 04:41:53 +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

@@ -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>';
}

View File

@@ -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>&nbsp;</span>").'
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
';
if(BOOTSTRAP !== 4)
if($bootstrap !== 4)
{
$text .= '<span class="caret"></span>';
}