diff --git a/hwe/func_template.php b/hwe/func_template.php index 09e6eece..372c9177 100644 --- a/hwe/func_template.php +++ b/hwe/func_template.php @@ -168,7 +168,7 @@ function commandButton(array $opts = []) $showSecret = false; $permission = checkSecretPermission($me); $btnClassForTournament = $opts['btnClass']; - if ($opts['isTournamentActive']) { + if ($opts['isTournamentApplicationOpen']) { if ($btnClassForTournament != 'dropdown-item') { $btnClassForTournament = 'toolbarButton2'; } diff --git a/hwe/index.php b/hwe/index.php index ff3e890e..269d28e4 100644 --- a/hwe/index.php +++ b/hwe/index.php @@ -88,7 +88,8 @@ $serverName = UniqueConst::$serverName; $serverCnt = $gameStor->server_cnt; $auctionCount = $db->queryFirstField('SELECT count(`no`) FROM auction'); -$isTournamentActive = $gameStor->tournament == 1; +$isTournamentActive = $gameStor->tournament > 0; +$isTournamentApplicationOpen = $gameStor->tournament == 1; $isBettingActive = $gameStor->tournament == 6; $myNationStatic = getNationStaticInfo($generalObj->getNationID()); @@ -257,7 +258,7 @@ if (!$otherTextInfo) {
-
'btn btn-sammo-nation', 'isTournamentActive' => $isTournamentActive, 'isBettingActive' => $isBettingActive]) ?>
+
'btn btn-sammo-nation', 'isTournamentApplicationOpen' => $isTournamentApplicationOpen, 'isBettingActive' => $isBettingActive]) ?>
@@ -357,7 +358,7 @@ if (!$otherTextInfo) { 국가 메뉴