View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0027299 | mantisbt | code cleanup | public | 2020-09-19 10:26 | 2020-09-25 14:53 | 
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | N/A | 
| Status | closed | Resolution | fixed | ||
| Target Version | 2.24.3 | Fixed in Version | 2.24.3 | ||
| Summary | 0027299: Remove code duplication in File API | ||||
| Description | file_can_view_bug_attachments() and file_can_download_bug_attachments() have nearly identical code, the only difference being the names of the configs. A new function should be added to avoid code duplication. | ||||
| Tags | No tags attached. | ||||
| MantisBT: master-2.24 90b83956 2020-09-12 12:04 Details Diff | New file_can_view_or_download() function file_can_view_bug_attachments() and file_can_download_bug_attachments() have nearly identical code, the only difference being the names of the configs. Adding a new internal File API function to avoid code duplication. Fixes 0027299 | Affected Issues 0027299 | |
| mod - core/file_api.php | Diff File | ||
