mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 16:34:23 -05:00
Db generation working on linux/windows
This commit is contained in:
@@ -29,7 +29,6 @@ class D2TxtParser {
|
||||
public $db;
|
||||
|
||||
public function __construct() {
|
||||
$this->db = new D2Database();
|
||||
}
|
||||
|
||||
public function parseFile($file) {
|
||||
@@ -58,9 +57,7 @@ class D2TxtParser {
|
||||
$header = array_shift($rows);
|
||||
foreach ($rows as $row) {
|
||||
$data[] = @array_combine($header, $row);
|
||||
}
|
||||
$this->db->createTables($file, $data);
|
||||
$this->db->fillsTables($file, $data);
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user