mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-37122 core get_max_upload_sizes: Include "Course/Site/Activity limit (X)" in list of options
This change removes the "0 bytes" option from the get_max_upload_sizes list and replaces it with "Course limit (X)" or "Site limit (X)" (whichever is smaller). This means we can remove all custom handling in the modules that were removing and adding these options. It only affects pages that pass valid options for sitelimit and courselimit - so admin pages will work correctly. It also orders the list so the course/site limit options will be first (as it will be the largest). AMOS START REM [courseuploadlimit, core] has been parameterized to get [uploadlimitwithsize, core] AMOS END
This commit is contained in:
parent
8fd56c1942
commit
6b219310cf
10 changed files with 122 additions and 18 deletions
|
@ -361,7 +361,6 @@ $string['coursestart'] = 'Course start';
|
|||
$string['coursesummary'] = 'Course summary';
|
||||
$string['coursesummary_help'] = 'The course summary is displayed in the list of courses. A course search searches course summary text in addition to course names.';
|
||||
$string['courseupdates'] = 'Course updates';
|
||||
$string['courseuploadlimit'] = 'Course upload limit';
|
||||
$string['create'] = 'Create';
|
||||
$string['createaccount'] = 'Create my new account';
|
||||
$string['createcategory'] = 'Create category';
|
||||
|
@ -1714,6 +1713,7 @@ $string['uploadfailednotrecovering'] = 'Your file upload has failed because ther
|
|||
$string['uploadfilelog'] = 'Upload log for file {$a}';
|
||||
$string['uploadformlimit'] = 'Uploaded file {$a} exceeded the maximum size limit set by the form';
|
||||
$string['uploadlabel'] = 'Title:';
|
||||
$string['uploadlimitwithsize'] = '{$a->contextname} upload limit ({$a->displaysize})';
|
||||
$string['uploadnewfile'] = 'Upload new file';
|
||||
$string['uploadnofilefound'] = 'No file was found - are you sure you selected one to upload?';
|
||||
$string['uploadnotallowed'] = 'Uploads are not allowed';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue