Revert "Update posting_attachments.php"

This reverts commit ddc44a6933.
This commit is contained in:
Roman Kelesidis 2023-12-31 11:35:50 +07:00
parent ddc44a6933
commit 0eb0b3d0d8

View File

@ -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))