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
ac056612a6
commit
33bb006965
@ -928,6 +928,16 @@ class attach_parent
|
|||||||
}
|
}
|
||||||
|
|
||||||
//bt
|
//bt
|
||||||
|
// Block uploading more than one torrent file
|
||||||
|
if (!$error && $this->extension === TORRENT_EXT && in_array(TORRENT_EXT, $this->attachment_extension_list))
|
||||||
|
{
|
||||||
|
$error = TRUE;
|
||||||
|
if (!empty($error_msg))
|
||||||
|
{
|
||||||
|
$error_msg .= '<br />';
|
||||||
|
}
|
||||||
|
$error_msg .= $lang['ONLY_1_TOR_PER_TOPIC'];
|
||||||
|
}
|
||||||
// Check if user can post torrent
|
// Check if user can post torrent
|
||||||
global $post_data;
|
global $post_data;
|
||||||
|
|
||||||
@ -1355,4 +1365,4 @@ function execute_posting_attachment_handling()
|
|||||||
|
|
||||||
$attachment_mod['posting'] = new attach_posting();
|
$attachment_mod['posting'] = new attach_posting();
|
||||||
$attachment_mod['posting']->posting_attachment_mod();
|
$attachment_mod['posting']->posting_attachment_mod();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user