fix: 연감 staticValues 중복

This commit is contained in:
2022-03-23 23:51:29 +09:00
parent 7ebdef3116
commit 79b9e1b22a
2 changed files with 4 additions and 8 deletions
+3 -7
View File
@@ -117,7 +117,9 @@ $nations = $history['nations'];
'lastMonth' => $e_month,
'selectYear' => $year,
'selectMonth' => $month,
'nations' => $nations ? JSON::encode($history['nations']) : '{}'
'nations' => $nations ? $history['nations'] : [],
'serverNick' => DB::prefix(),
'serverID' => UniqueConst::$serverID,
]
])?>
<?= WebUtil::printDist('ts', ['common', 'history']) ?>
@@ -205,12 +207,6 @@ $nations = $history['nations'];
<td><?= banner() ?> </td>
</tr>
</table>
<?= WebUtil::printStaticValues([
'staticValues' => [
'serverNick' => DB::prefix(),
'serverID' => UniqueConst::$serverID,
]
])?>
<script>
<?php if($isCurrent): ?>
reloadWorldMap({
+1 -1
View File
@@ -25,7 +25,7 @@ $(function ($) {
let $elements = $();
const endDate = joinYearMonth(staticValues.lastYear, staticValues.lastMonth) + 1;//연감 마지막 + 1(현재)
let currDate = joinYearMonth(staticValues.startYear, staticValues.startMonth);
let currDate = joinYearMonth(currYear, currMonth);
while (currDate <= endDate) {
let sel = '';
if (currDate == selectDate) {