From 5d7bbde24b39845234ed0b1b0299f5f2c90f2f33 Mon Sep 17 00:00:00 2001 From: roileviK Date: Wed, 31 Jul 2024 15:05:12 +0300 Subject: [PATCH] ILMS-695 fix error when accessing course completion --- mod/kalvidres/mod_form.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mod/kalvidres/mod_form.php b/mod/kalvidres/mod_form.php index 627dcb7c..7eb75cf9 100644 --- a/mod/kalvidres/mod_form.php +++ b/mod/kalvidres/mod_form.php @@ -38,9 +38,6 @@ class mod_kalvidres_mod_form extends moodleform_mod { public function definition() { global $CFG, $COURSE, $PAGE; - $pageclass = 'kaltura-kalvidres-body'; - $PAGE->add_body_class($pageclass); - $params = array( 'withblocks' => 0, 'courseid' => $COURSE->id, @@ -63,14 +60,6 @@ public function definition() { $PAGE->requires->string_for_js('replace_video', 'kalvidres'); $PAGE->requires->string_for_js('browse_and_embed', 'local_kaltura'); - // Require a YUI module to make the object tag be as large as possible. - $params = array( - 'bodyclass' => $pageclass, - 'lastheight' => null, - 'padding' => 15 - ); - $PAGE->requires->yui_module('moodle-local_kaltura-lticontainer', 'M.local_kaltura.init', array($params), null, true); - $mform =& $this->_form; // This line is needed to avoid a PHP warning when the form is submitted.