|
@@ -116,7 +116,7 @@ |
|
|
block discarded – undo |
|
116
|
116
|
|
|
117
|
117
|
$this->_attachmentUploadDir = $modSettings['attachmentUploadDir']; |
|
118
|
118
|
|
|
119
|
|
- $this->_attchDir = $context['attach_dir'] = isset($this->_attachmentUploadDir[$modSettings['currentAttachmentUploadDir']]) ? $this->_attachmentUploadDir[$modSettings['currentAttachmentUploadDir']] : NULL; |
|
|
119
|
+ $this->_attchDir = $context['attach_dir'] = isset($this->_attachmentUploadDir[$modSettings['currentAttachmentUploadDir']]) ? $this->_attachmentUploadDir[$modSettings['currentAttachmentUploadDir']] : null; |
|
120
|
120
|
|
|
121
|
121
|
$this->_canPostAttachment = $context['can_post_attachment'] = !empty($modSettings['attachmentEnable']) && $modSettings['attachmentEnable'] == 1 && (allowedTo('post_attachment', $this->_board) || ($modSettings['postmod_active'] && allowedTo('post_unapproved_attachments', $this->_board))); |
|
122
|
122
|
} |
Please login to merge, or discard this patch.