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:
@@ -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>';
|
||||
}
|
||||
|
Reference in New Issue
Block a user