|
@@ -375,6 +375,20 @@ if ((!isset($GroupID) || !$GroupID)) {
|
375
|
375
|
if (!isset($GroupID) || !$GroupID) {
|
376
|
376
|
// Create torrent group
|
377
|
377
|
$DB->query("
|
|
378
|
+ INSERT INTO torrents_group
|
|
379
|
+ (CategoryID, Name, NameRJ, NameJP, Year,
|
|
380
|
+ Series, Studio, CatalogueNumber, Pages, Time,
|
|
381
|
+ WikiBody, WikiImage)
|
|
382
|
+ VALUES
|
|
383
|
+ ( ?, ?, ?, ?, ?,
|
|
384
|
+ ?, ?, ?, ?, NOW(),
|
|
385
|
+ ?, ? )",
|
|
386
|
+ $TypeID, $T['Title'], $T['TitleRJ'], $T['TitleJP'], $T['Year'],
|
|
387
|
+ $T['Series'], $T['Studio'], $T['CatalogueNumber'], $T['Pages'],
|
|
388
|
+ $Body, $T['Image']);
|
|
389
|
+
|
|
390
|
+ /* Original DB query
|
|
391
|
+ $DB->query("
|
378
|
392
|
INSERT INTO torrents_group
|
379
|
393
|
(CategoryID, Name, NameRJ, NameJP, Year,
|
380
|
394
|
Series, Studio, CatalogueNumber, Pages, Time,
|
|
@@ -386,6 +400,8 @@ if (!isset($GroupID) || !$GroupID) {
|
386
|
400
|
$TypeID, $T['Title'], $T['TitleRJ'], $T['TitleJP'], $T['Year'],
|
387
|
401
|
$T['Series'], $T['Studio'], $T['CatalogueNumber'], $T['Pages'],
|
388
|
402
|
$Body, $T['Image'], $T['DLsiteID']);
|
|
403
|
+ */
|
|
404
|
+
|
389
|
405
|
$GroupID = $DB->inserted_id();
|
390
|
406
|
foreach ($ArtistForm as $Num => $Artist) {
|
391
|
407
|
$DB->query("
|