mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Revert "Update posting_attachments.php"
This reverts commit 8b41321df3
.
This commit is contained in:
parent
8785acef01
commit
ac056612a6
@ -928,19 +928,6 @@ class attach_parent
|
||||
}
|
||||
|
||||
//bt
|
||||
// Block uploading more than one torrent file
|
||||
$uploaded_torrents = isset(array_count_values($this->attachment_extension_list)[TORRENT_EXT]) ? array_count_values($this->attachment_extension_list)[TORRENT_EXT] : 0;
|
||||
if (!$error && $this->extension === TORRENT_EXT && ($uploaded_torrents >= 1))
|
||||
{
|
||||
$error = TRUE;
|
||||
if (!empty($error_msg))
|
||||
{
|
||||
$error_msg .= '<br />';
|
||||
}
|
||||
$error_msg .= $lang['ONLY_1_TOR_PER_TOPIC'];
|
||||
}
|
||||
unset($uploaded_torrents);
|
||||
|
||||
// Check if user can post torrent
|
||||
global $post_data;
|
||||
|
||||
@ -1368,4 +1355,4 @@ function execute_posting_attachment_handling()
|
||||
|
||||
$attachment_mod['posting'] = new attach_posting();
|
||||
$attachment_mod['posting']->posting_attachment_mod();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user