mirror of
https://github.com/mbirth/tcl_update_db.git
synced 2024-12-27 04:54:08 +00:00
More bugfixing.
This commit is contained in:
parent
997c50e057
commit
35c97662ee
@ -3,6 +3,7 @@
|
|||||||
require_once __DIR__ . '/lib/autoloader.php';
|
require_once __DIR__ . '/lib/autoloader.php';
|
||||||
|
|
||||||
use \TclUpdates\GotuObject;
|
use \TclUpdates\GotuObject;
|
||||||
|
use \TclUpdates\SQLiteWriter;
|
||||||
use \TclUpdates\XmlParser;
|
use \TclUpdates\XmlParser;
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
@ -39,6 +40,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
|||||||
// Parse XML into database
|
// Parse XML into database
|
||||||
$g = GotuObject::fromXmlParser($xp);
|
$g = GotuObject::fromXmlParser($xp);
|
||||||
if ($g->tv) {
|
if ($g->tv) {
|
||||||
|
$sqlw = new SQLiteWriter();
|
||||||
$result = $sqlw->addGotu($g, $file_date);
|
$result = $sqlw->addGotu($g, $file_date);
|
||||||
// I don't care if we can use the data or not. Maybe we can use it later (backup copy).
|
// I don't care if we can use the data or not. Maybe we can use it later (backup copy).
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user