MDL-69257 core_h5p: Move $maxsize outside the foreach loop
authorMihail Geshoski <mihail@moodle.com>
Fri, 9 Oct 2020 02:23:28 +0000 (10:23 +0800)
committerMihail Geshoski <mihail@moodle.com>
Fri, 9 Oct 2020 02:36:01 +0000 (10:36 +0800)
commit03058394f266bc3338c7b4f00ab380cdec17dd08
treeab16ae466b6f9fe327b77410993c8aee278c9377
parent1a8042701818a6dbc67b3f56c3a6d8e25b7e8666
MDL-69257 core_h5p: Move $maxsize outside the foreach loop

There is no reason to repeatedly obtain the maximum size for uploading
files as a part of foreach loop.
h5p/ajax.php