-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Attachments #3580
base: development
Are you sure you want to change the base?
[WIP] Attachments #3580
Conversation
WooHoo More attachment fun 👍
|
Dealing with attachments is more of an headache than I remembered. 😆
|
Codecov Report
@@ Coverage Diff @@
## development #3580 +/- ##
=================================================
- Coverage 30.52% 26.39% -4.14%
+ Complexity 15723 15534 -189
=================================================
Files 423 439 +16
Lines 74098 75286 +1188
=================================================
- Hits 22616 19868 -2748
- Misses 51482 55418 +3936
Continue to review full report at Codecov.
|
This comment was marked as spam.
This comment was marked as spam.
@@ -286,8 +286,7 @@ public function action_dlattach() | |||
// We need to do some work on attachments and avatars. | |||
require_once(SUBSDIR . '/Attachments.subs.php'); | |||
|
|||
$id_attach = $this->_req->query->attach ?? ''; | |||
$attachment_class = new Download($id_attach, $this->_req->getQuery('attach', 'intval', 0)); | |||
$attachment_class = new Download($this->_req->query->attach ?? ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$attachment_class = new Download($this->_req->query->attach ?? ''); | |
$attachment_class = new Download($this->_req->query->attach ?? 0); |
It was a while I wanted to kill again the attachments.
That's really just a bit of makeup to warm me up. The Attachment class is a placeholder, I just wanted to put these constants somewhere because it always bothered me I could never find what the heck the numbers were. It could hold much more, worst case a good chunk of Attachments.subs.php in a static way.
I was thinking of a couple of things:
What do you think @Spuds ?