MDL-37122 core get_max_upload_sizes: Include "Course/Site/Activity limit (X)" in...
authorDamyon Wiese <damyon@moodle.com>
Mon, 21 Jan 2013 06:36:57 +0000 (14:36 +0800)
committerDamyon Wiese <damyon@moodle.com>
Thu, 7 Feb 2013 02:50:52 +0000 (10:50 +0800)
commit6b219310cf269df209a7b39e1003b1266a7329fb
tree243063ad42148e418499816597411669eb35b617
parent8fd56c194284bb89055010638ff8ab214915f90e
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
lang/en/moodle.php
lib/moodlelib.php
lib/tests/moodlelib_test.php
lib/upgrade.txt
mod/assign/submission/file/locallib.php
mod/assignment/type/upload/assignment.class.php
mod/assignment/type/uploadsingle/assignment.class.php
mod/forum/mod_form.php
mod/workshop/mod_form.php
mod/workshop/settings.php