newRootDB(), newDB가 이전의 코드 수정으로 new를 수행하는 경우가 줄어들었으므로 getRootDB(), newDB() 로 이름 변경

This commit is contained in:
2018-01-28 21:44:08 +09:00
parent 373bcde70b
commit dc56de8afd
8 changed files with 15 additions and 14 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ function CoreTurnTable() {
function allButton() {
global $_basecolor2;
$npcmode = newDB()->queryFirstField("select npcmode from game where no='1'");
$npcmode = getDB()->queryFirstField("select npcmode from game where no='1'");
if($npcmode == 1) {
$site = "a_npcList.php";
$call = "빙의일람";
@@ -109,7 +109,7 @@ function commandButton() {
if($generalID === NULL){
return '';
}
$db = newDB();
$db = getDB();
$me = $db->queryFirstRow("select skin,no,nation,level,belong from general where user_id=%i", $generalID);