Skip to content

Commit

Permalink
mog_form->getFile -> mod_form->get_file
Browse files Browse the repository at this point in the history
  • Loading branch information
solomax committed Jan 16, 2024
1 parent b404468 commit 8f31a7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function update_om_room(&$meeting, $gateway) {
$room['files'][] = array('wbIdx' => $wbidx, 'fileId' => $omfileid);
continue;
}
$file = $mform->getFile($i);
$file = $mform->get_file($i);
if (!!$file) {
$filename = $file->get_filename();
$fileobj->file_name = $filename;
Expand Down
2 changes: 1 addition & 1 deletion mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public function definition() {
* @param int $idx - index of the file
* @return file - file at given index or `false`
*/
public function getFile($idx = 0) {
public function get_file($idx = 0) {
global $USER;
$grp = $this->_form->getElement('file_grp[' . $idx . ']');
if ($grp instanceof MoodleQuickForm_group) {
Expand Down

0 comments on commit 8f31a7e

Please sign in to comment.