getDB(), getRootDB()를 autoload 클래스로 변경
- 각각 DB::db(), RootDB::db()임.
This commit is contained in:
@@ -93,7 +93,7 @@ function LogHistory($isFirst=0) {
|
||||
$genStr = "";
|
||||
$cityStr = "";
|
||||
|
||||
$db = getDB();
|
||||
$db = DB::db();
|
||||
foreach($db->query('select nation,color,name,power,gennum from nation where level>0 order by power desc') as $nation){
|
||||
$cityCount = $db->queryFirstField('select count(*) from city where nation = %i',$nation['nation']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user