mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
tag and installer&updater use english
This commit is contained in:
+11
-1
@@ -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].")");
|
||||
|
||||
Reference in New Issue
Block a user