mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 04:26:03 +00:00
Bugfixing
This commit is contained in:
parent
70e09747e3
commit
b85fbf02b3
@ -39,8 +39,9 @@ if (file_exists("d2im.db") && (file_exists($_SESSION['modname'].".db"))){
|
||||
|
||||
$armor = PDO_FetchAll('SELECT * FROM armor WHERE `spawnable`=1');
|
||||
$weapon = PDO_FetchAll('SELECT * FROM weapons WHERE `spawnable`=1');
|
||||
|
||||
|
||||
$prop = $parser->parseFile('Properties.txt');
|
||||
$prop = $parser->filterProps('Properties.txt');
|
||||
|
||||
// If there's data, process it and save
|
||||
if (!empty($_POST)) {
|
||||
|
@ -32,9 +32,6 @@ class D2TxtParser {
|
||||
}
|
||||
|
||||
public function parseFile($file) {
|
||||
if ($file == "Properties.txt") {
|
||||
return $this->filterProps($file);
|
||||
}
|
||||
return $this->parseData($file);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user