Update mod/assignment/type/upload/assignment.class.php

When "Send for marking" is off on the assignment allow download 
submissions link to function by downloading all files no matter 
their current state of finalization.
fix commit full stop and remove ternary operator
Update mod/assignment/type/upload/assignment.class.php

When "Send for marking" is off on the assignment allow download 
submissions link to function by downloading all files no matter 
their current state of finalization.

fix commit full stop and remove ternary operator
Merge branch 'master' of github.com:eriko/moodle
download add files
MDL-39827 course: Trigger invalidate cache event while changing sort-order of category
MDL-39723 Remove unnecessary queries for COURSE, SITE
MDL-39790 Add badges block to the course page
MDL-39743 assign: Fix missing capability check for "grant extension"
MDL-39317 assign: Fix for submitted filter on grading table.

Some old upgraded assignments have no timecreated column so use
a different one to check for a valid submission.
MDL-39936 upgrade: 2.5.0 line incorrectly positioned
MDL-39931 theme_bootstrapbase: ported invisiblefieldset css rules from theme/base/core.css to less/moodle/core.css
MDL-34085 Fix the backup options names in core_course_duplicate_course

Fix the option names to match those used by the backup subsystem.
MDL-39945 qtype multichoice was not comparing blank responses correctly.
MDL-39932 mod_feedback - Mapping Feedback when Course is Deleted - thx to David N. Johnson
Automatically generated installer lang files
MDL-21097 Correctly check capabilities for course settings items

- Make sure that items in course settings (and frontpage settings) are shown depending on user capabilities
- Make sure user is able to turn editing on on the page even if he has only limited number of seciton/modules managing capabilities
MDL-21097 Allow user to change current section if he does not have any other manageing capability
MDL-39801 navigation_node::remove fails if first child does not have a key
MDL-39801 navigation_node::remove does not allow to insert nodes afterwards