간단한 국가 정보를 가져오는 코드들을 일부 통합.

This commit is contained in:
2018-02-26 01:46:13 +09:00
parent 2cd7d525a4
commit 7efc03813b
14 changed files with 120 additions and 210 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ $src = [
'nation' => null
];
if($src['nation_id'] != 0) {
$nation = $db->queryFirstRow('select nation,name,color from nation where nation=%i',$src_nation_id);
$nation = getNationStaticInfo($src_nation_id);
$src['nation'] = $nation['name'];
$src['color'] = '#'.$nation['color'];
$src['color'] = str_replace('##', '#', $src['color']); //FIXME: nation table에서 color가 #포함된 걸로 바뀔 경우를 대비