1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-11-09 23:06:45 +00:00

More bugfixing.

This commit is contained in:
Markus Birth 2017-12-16 23:09:58 +01:00
parent 997c50e057
commit 35c97662ee
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -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).
} }