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 ddc44a6933
.
This commit is contained in:
parent
ddc44a6933
commit
0eb0b3d0d8
@ -11,7 +11,6 @@ define('FILENAME_CRYPTIC_LENGTH', 64);
|
||||
class attach_parent
|
||||
{
|
||||
var $post_attach = false;
|
||||
var $update_attachment = false;
|
||||
var $attach_filename = '';
|
||||
var $filename = '';
|
||||
var $type = '';
|
||||
@ -240,7 +239,7 @@ class attach_parent
|
||||
$add = (isset($_POST['add_attachment'])) ? TRUE : FALSE;
|
||||
$delete = (isset($_POST['del_attachment'])) ? TRUE : FALSE;
|
||||
$edit = ( isset($_POST['edit_comment']) ) ? TRUE : FALSE;
|
||||
$update_attachment = $this->update_attachment = ( isset($_POST['update_attachment']) ) ? TRUE : FALSE;
|
||||
$update_attachment = ( isset($_POST['update_attachment']) ) ? TRUE : FALSE;
|
||||
$del_thumbnail = ( isset($_POST['del_thumbnail']) ) ? TRUE : FALSE;
|
||||
|
||||
$add_attachment_box = (!empty($_POST['add_attachment_box'])) ? TRUE : FALSE;
|
||||
@ -945,7 +944,7 @@ class attach_parent
|
||||
|
||||
//bt
|
||||
// Block uploading more than one torrent file
|
||||
if (!$error && !$this->update_attachment && $this->extension === TORRENT_EXT && in_array(TORRENT_EXT, $this->attachment_extension_list))
|
||||
if (!$error && $this->extension === TORRENT_EXT && in_array(TORRENT_EXT, $this->attachment_extension_list))
|
||||
{
|
||||
$error = TRUE;
|
||||
if (!empty($error_msg))
|
||||
|
Loading…
Reference in New Issue
Block a user