mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update posting_attachments.php
This commit is contained in:
parent
0eb0b3d0d8
commit
f91c58aae4
@ -208,7 +208,7 @@ class attach_parent
|
||||
*/
|
||||
function handle_attachments($mode)
|
||||
{
|
||||
global $is_auth, $attach_config, $refresh, $post_id, $submit, $preview, $error, $error_msg, $lang;
|
||||
global $is_auth, $attach_config, $refresh, $update_attachment, $post_id, $submit, $preview, $error, $error_msg, $lang;
|
||||
|
||||
//
|
||||
// ok, what shall we do ;)
|
||||
@ -944,7 +944,9 @@ class attach_parent
|
||||
|
||||
//bt
|
||||
// Block uploading more than one torrent file
|
||||
if (!$error && $this->extension === TORRENT_EXT && in_array(TORRENT_EXT, $this->attachment_extension_list))
|
||||
global $update_attachment;
|
||||
|
||||
if (!$error && $this->extension === TORRENT_EXT && in_array(TORRENT_EXT, $this->attachment_extension_list) && !$update_attachment)
|
||||
{
|
||||
$error = TRUE;
|
||||
if (!empty($error_msg))
|
||||
|
Loading…
Reference in New Issue
Block a user