mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-27156 repositories: switched some spots over to using get_user_max_upload_file_size() instead of get_max_upload_file_size()
This commit is contained in:
parent
8ac95c279c
commit
1812ea3e06
3 changed files with 3 additions and 3 deletions
|
@ -2114,7 +2114,7 @@ abstract class lesson_page extends lesson_base {
|
|||
$context = $PAGE->context;
|
||||
}
|
||||
if ($maxbytes === null) {
|
||||
$maxbytes =get_max_upload_file_size();
|
||||
$maxbytes = get_user_max_upload_file_size($context);
|
||||
}
|
||||
$properties = file_postupdate_standard_editor($properties, 'contents', array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$maxbytes), $context, 'mod_lesson', 'page_contents', $properties->id);
|
||||
$DB->update_record("lesson_pages", $properties);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue