Commit Graph

10 Commits

Author SHA1 Message Date
sam marshall e332d1849d MDL-72643 core: Improve display_size
Allows display_size to use a fixed unit for easy comparison of
multiple results, and fixed decimal places for the same reason.

Improves behaviour by using consistent decimal places and a
consistent space before the unit (the previous one only has a space
before 'bytes', not before 'KB').

Of existing uses, all the ones that displayed a 'maxbytes' type
configuration setting (which are likely to have an 'exact' size
and would be better shown as 512 KB rather than 512.0 KB) have been
changed to use 0 decimal places, to preserve previous behaviour.
All the uses which were showing an actual file or memory size have
been left as default (1 decimal place).
2021-09-27 16:52:33 +01:00
Eloy Lafuente (stronk7) 103027b723 Merge branch 'MDL-72163-master' of git://github.com/andrewnicols/moodle 2021-08-24 20:12:13 +02:00
Paul Holden fdbbef6372 MDL-71487 admin: ensure filesize settings don't overflow integer. 2021-08-09 10:36:10 +01:00
Andrew Nicols d55aeee10c MDL-72163 admin: Create interface for settings with a url 2021-07-16 15:20:30 +08:00
Jordi Pujol Ahulló 9c4510a358 MDL-70230 admin: add setting sched. task status
When defining settings that are used by scheduled tasks,
it is also useful, or even needed, to know the status
of that scheduled task to have the whole big picture of
that part of the system.

Based on the admin_setting_description, this new setting
reports its name, its status, a link to the configuration.

When adding a new setting of this type, the user can add
an extra description field to complete the whole meaning.
2021-06-04 08:12:16 +02:00
Shamim Rezaie 2d7feb7583 MDL-69166 core_payment: Renamed plugintype name from pg to paygw 2020-10-27 15:34:55 +11:00
Shamim Rezaie 9e9ae7a51e MDL-69166 core: list settings page in the admin tree 2020-10-27 08:37:08 +11:00
Brendan Heywood 0f3fdc1133 MDL-67650 admin: Consistently show forced config settings 2020-10-22 13:16:51 +11:00
Tien Nguyen 1049909097 MDL-68797 Administration: Add auto complete setting 2020-09-04 10:59:00 +07:00
Shamim Rezaie e2d97a4659 MDL-46317 admin: Added admin\local\settings\filesize class 2019-08-12 13:22:24 +10:00