From 8f31a7e0d00716ce1a0ca32e745c46300b17f890 Mon Sep 17 00:00:00 2001 From: Maxim Solodovnik Date: Tue, 16 Jan 2024 22:50:52 +0700 Subject: [PATCH] `mog_form->getFile` -> `mod_form->get_file` --- lib.php | 2 +- mod_form.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.php b/lib.php index da4e084..0916a2c 100644 --- a/lib.php +++ b/lib.php @@ -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; diff --git a/mod_form.php b/mod_form.php index ea9b19f..771bde9 100644 --- a/mod_form.php +++ b/mod_form.php @@ -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) {