tag and installer&updater use english

This commit is contained in:
xiaomlove
2022-03-08 15:08:56 +08:00
parent a56891132d
commit 718a57539d
67 changed files with 1149 additions and 104 deletions
+11 -1
View File
@@ -292,7 +292,7 @@ foreach ($promotionrules_torrent as $rule)
}
}
}
$dateTimeStringNow = \Carbon\Carbon::now()->toDateTimeString();
/**
* add PT-Gen
* @since 1.6
@@ -336,6 +336,16 @@ if (!empty($_POST['custom_fields'])) {
}
}
/**
* handle tags
*
* @since v1.6
*/
$tagIdArr = array_filter($_POST['tags']);
if (!empty($tagIdArr)) {
insert_torrent_tags($id, $tagIdArr);
}
@sql_query("DELETE FROM files WHERE torrent = $id");
foreach ($filelist as $file) {
@sql_query("INSERT INTO files (torrent, filename, size) VALUES ($id, ".sqlesc($file[0]).",".$file[1].")");