From 09c00e14387b5631c5cbeb9252cd7c44416c33c8 Mon Sep 17 00:00:00 2001 From: roileviK Date: Tue, 30 Jul 2024 17:25:35 +0300 Subject: [PATCH 1/3] ILMS-692 fix required moodle version - plugin is supported from moodle 4.3.0 --- blocks/kalturamediagallery/version.php | 2 +- filter/kaltura/version.php | 2 +- lib/editor/atto/plugins/kalturamedia/version.php | 2 +- lib/editor/tiny/plugins/kalturamedia/version.php | 2 +- local/kaltura/version.php | 2 +- local/kalturamediagallery/version.php | 2 +- local/mymedia/version.php | 2 +- mod/kalvidassign/version.php | 2 +- mod/kalvidres/version.php | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/blocks/kalturamediagallery/version.php b/blocks/kalturamediagallery/version.php index 8efd3269..4e014a78 100644 --- a/blocks/kalturamediagallery/version.php +++ b/blocks/kalturamediagallery/version.php @@ -16,7 +16,7 @@ $plugin->version = 2023100901; $plugin->release = 'Kaltura release 4.4.8'; -$plugin->requires = 2023100901; +$plugin->requires = 2023100900; $plugin->component = 'block_kalturamediagallery'; $plugin->dependencies = array( 'local_kaltura' => 2023100901, diff --git a/filter/kaltura/version.php b/filter/kaltura/version.php index eca0cca3..251f4f70 100644 --- a/filter/kaltura/version.php +++ b/filter/kaltura/version.php @@ -27,7 +27,7 @@ $plugin->version = 2023100901; //version date YYYYMMDDXX 10 represent 3.0 for future option to moodle use 2 digit version $plugin->component = 'filter_kaltura'; $plugin->release = 'Kaltura release 4.4.8'; -$plugin->requires = 2023100901; +$plugin->requires = 2023100900; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( 'local_kaltura' => 2023100901 diff --git a/lib/editor/atto/plugins/kalturamedia/version.php b/lib/editor/atto/plugins/kalturamedia/version.php index af9eefeb..4e55ebb2 100644 --- a/lib/editor/atto/plugins/kalturamedia/version.php +++ b/lib/editor/atto/plugins/kalturamedia/version.php @@ -26,7 +26,7 @@ $plugin->version = 2023100901; // The current plugin version (Date: YYYYMMDDXX). $plugin->release = 'Kaltura release 4.4.8'; -$plugin->requires = 2023100901; // Requires this Moodle version. +$plugin->requires = 2023100900; // Requires this Moodle version. $plugin->component = 'atto_kalturamedia'; // Full name of the plugin (used for diagnostics). $plugin->dependencies = array( 'local_kaltura' => 2023100901 diff --git a/lib/editor/tiny/plugins/kalturamedia/version.php b/lib/editor/tiny/plugins/kalturamedia/version.php index ab812765..627ed94d 100644 --- a/lib/editor/tiny/plugins/kalturamedia/version.php +++ b/lib/editor/tiny/plugins/kalturamedia/version.php @@ -26,7 +26,7 @@ $plugin->version = 2023100901; $plugin->release = 'Kaltura release 4.4.8'; -$plugin->requires = 2023100901; +$plugin->requires = 2023100900; $plugin->component = 'tiny_kalturamedia'; $plugin->dependencies = array( 'local_kaltura' => 2023100901 diff --git a/local/kaltura/version.php b/local/kaltura/version.php index 435c134c..7ead9b12 100644 --- a/local/kaltura/version.php +++ b/local/kaltura/version.php @@ -28,7 +28,7 @@ $plugin->version = 2023100901; $plugin->component = 'local_kaltura'; $plugin->release = 'Kaltura release 4.4.8'; -$plugin->requires = 2023100901; +$plugin->requires = 2023100900; $plugin->maturity = MATURITY_STABLE; try { diff --git a/local/kalturamediagallery/version.php b/local/kalturamediagallery/version.php index 8a1a22b4..5278df98 100644 --- a/local/kalturamediagallery/version.php +++ b/local/kalturamediagallery/version.php @@ -29,7 +29,7 @@ $plugin->version = 2023100901; $plugin->component = 'local_kalturamediagallery'; $plugin->release = 'Kaltura release 4.4.8'; -$plugin->requires = 2023100901; +$plugin->requires = 2023100900; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( 'local_kaltura' => 2023100901 diff --git a/local/mymedia/version.php b/local/mymedia/version.php index 58f4a06b..528709f2 100644 --- a/local/mymedia/version.php +++ b/local/mymedia/version.php @@ -28,7 +28,7 @@ $plugin->version = 2023100901; $plugin->component = 'local_mymedia'; $plugin->release = 'Kaltura release 4.4.8'; -$plugin->requires = 2023100901; +$plugin->requires = 2023100900; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( 'local_kaltura' => 2023100901 diff --git a/mod/kalvidassign/version.php b/mod/kalvidassign/version.php index 049d8f5a..2fbedd76 100644 --- a/mod/kalvidassign/version.php +++ b/mod/kalvidassign/version.php @@ -28,7 +28,7 @@ $plugin->version = 2023100901; $plugin->component = 'mod_kalvidassign'; $plugin->release = 'Kaltura release 4.4.8'; -$plugin->requires = 2023100901; +$plugin->requires = 2023100900; $plugin->cron = 0; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( diff --git a/mod/kalvidres/version.php b/mod/kalvidres/version.php index 22e86744..6b999c32 100644 --- a/mod/kalvidres/version.php +++ b/mod/kalvidres/version.php @@ -28,7 +28,7 @@ $plugin->version = 2023100901; $plugin->component = 'mod_kalvidres'; $plugin->release = 'Kaltura release 4.4.8'; -$plugin->requires = 2023100901; +$plugin->requires = 2023100900; $plugin->cron = 0; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( From 9f644edfd25be5047048b9fb4ccd9ecea0b0220c Mon Sep 17 00:00:00 2001 From: roileviK Date: Tue, 30 Jul 2024 17:27:30 +0300 Subject: [PATCH 2/3] ILMS-692 bump plugin version --- blocks/kalturamediagallery/version.php | 8 ++++---- filter/kaltura/version.php | 6 +++--- lib/editor/atto/plugins/kalturamedia/version.php | 6 +++--- lib/editor/tiny/plugins/kalturamedia/version.php | 6 +++--- local/kaltura/version.php | 4 ++-- local/kalturamediagallery/version.php | 6 +++--- local/mymedia/version.php | 6 +++--- mod/kalvidassign/version.php | 6 +++--- mod/kalvidres/version.php | 6 +++--- 9 files changed, 27 insertions(+), 27 deletions(-) diff --git a/blocks/kalturamediagallery/version.php b/blocks/kalturamediagallery/version.php index 4e014a78..a014b417 100644 --- a/blocks/kalturamediagallery/version.php +++ b/blocks/kalturamediagallery/version.php @@ -14,11 +14,11 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023100901; -$plugin->release = 'Kaltura release 4.4.8'; +$plugin->version = 2023100902; +$plugin->release = 'Kaltura release 4.4.9'; $plugin->requires = 2023100900; $plugin->component = 'block_kalturamediagallery'; $plugin->dependencies = array( - 'local_kaltura' => 2023100901, - 'local_kalturamediagallery' => 2023100901 + 'local_kaltura' => 2023100902, + 'local_kalturamediagallery' => 2023100902 ); diff --git a/filter/kaltura/version.php b/filter/kaltura/version.php index 251f4f70..05964c05 100644 --- a/filter/kaltura/version.php +++ b/filter/kaltura/version.php @@ -24,11 +24,11 @@ */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023100901; //version date YYYYMMDDXX 10 represent 3.0 for future option to moodle use 2 digit version +$plugin->version = 2023100902; //version date YYYYMMDDXX 10 represent 3.0 for future option to moodle use 2 digit version $plugin->component = 'filter_kaltura'; -$plugin->release = 'Kaltura release 4.4.8'; +$plugin->release = 'Kaltura release 4.4.9'; $plugin->requires = 2023100900; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 2023100901 + 'local_kaltura' => 2023100902 ); diff --git a/lib/editor/atto/plugins/kalturamedia/version.php b/lib/editor/atto/plugins/kalturamedia/version.php index 4e55ebb2..e9faa141 100644 --- a/lib/editor/atto/plugins/kalturamedia/version.php +++ b/lib/editor/atto/plugins/kalturamedia/version.php @@ -24,10 +24,10 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023100901; // The current plugin version (Date: YYYYMMDDXX). -$plugin->release = 'Kaltura release 4.4.8'; +$plugin->version = 2023100902; // The current plugin version (Date: YYYYMMDDXX). +$plugin->release = 'Kaltura release 4.4.9'; $plugin->requires = 2023100900; // Requires this Moodle version. $plugin->component = 'atto_kalturamedia'; // Full name of the plugin (used for diagnostics). $plugin->dependencies = array( - 'local_kaltura' => 2023100901 + 'local_kaltura' => 2023100902 ); diff --git a/lib/editor/tiny/plugins/kalturamedia/version.php b/lib/editor/tiny/plugins/kalturamedia/version.php index 627ed94d..f91042c7 100644 --- a/lib/editor/tiny/plugins/kalturamedia/version.php +++ b/lib/editor/tiny/plugins/kalturamedia/version.php @@ -24,10 +24,10 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023100901; -$plugin->release = 'Kaltura release 4.4.8'; +$plugin->version = 2023100902; +$plugin->release = 'Kaltura release 4.4.9'; $plugin->requires = 2023100900; $plugin->component = 'tiny_kalturamedia'; $plugin->dependencies = array( - 'local_kaltura' => 2023100901 + 'local_kaltura' => 2023100902 ); diff --git a/local/kaltura/version.php b/local/kaltura/version.php index 7ead9b12..d076e2a5 100644 --- a/local/kaltura/version.php +++ b/local/kaltura/version.php @@ -25,9 +25,9 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 2023100901; +$plugin->version = 2023100902; $plugin->component = 'local_kaltura'; -$plugin->release = 'Kaltura release 4.4.8'; +$plugin->release = 'Kaltura release 4.4.9'; $plugin->requires = 2023100900; $plugin->maturity = MATURITY_STABLE; diff --git a/local/kalturamediagallery/version.php b/local/kalturamediagallery/version.php index 5278df98..9757ef67 100644 --- a/local/kalturamediagallery/version.php +++ b/local/kalturamediagallery/version.php @@ -26,11 +26,11 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 2023100901; +$plugin->version = 2023100902; $plugin->component = 'local_kalturamediagallery'; -$plugin->release = 'Kaltura release 4.4.8'; +$plugin->release = 'Kaltura release 4.4.9'; $plugin->requires = 2023100900; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 2023100901 + 'local_kaltura' => 2023100902 ); diff --git a/local/mymedia/version.php b/local/mymedia/version.php index 528709f2..d2207afa 100644 --- a/local/mymedia/version.php +++ b/local/mymedia/version.php @@ -25,11 +25,11 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 2023100901; +$plugin->version = 2023100902; $plugin->component = 'local_mymedia'; -$plugin->release = 'Kaltura release 4.4.8'; +$plugin->release = 'Kaltura release 4.4.9'; $plugin->requires = 2023100900; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 2023100901 + 'local_kaltura' => 2023100902 ); diff --git a/mod/kalvidassign/version.php b/mod/kalvidassign/version.php index 2fbedd76..01f5ffbe 100644 --- a/mod/kalvidassign/version.php +++ b/mod/kalvidassign/version.php @@ -25,12 +25,12 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 2023100901; +$plugin->version = 2023100902; $plugin->component = 'mod_kalvidassign'; -$plugin->release = 'Kaltura release 4.4.8'; +$plugin->release = 'Kaltura release 4.4.9'; $plugin->requires = 2023100900; $plugin->cron = 0; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 2023100901, + 'local_kaltura' => 2023100902, ); diff --git a/mod/kalvidres/version.php b/mod/kalvidres/version.php index 6b999c32..3d0dbf76 100644 --- a/mod/kalvidres/version.php +++ b/mod/kalvidres/version.php @@ -25,12 +25,12 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 2023100901; +$plugin->version = 2023100902; $plugin->component = 'mod_kalvidres'; -$plugin->release = 'Kaltura release 4.4.8'; +$plugin->release = 'Kaltura release 4.4.9'; $plugin->requires = 2023100900; $plugin->cron = 0; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 2023100901 + 'local_kaltura' => 2023100902 ); From 5d7bbde24b39845234ed0b1b0299f5f2c90f2f33 Mon Sep 17 00:00:00 2001 From: roileviK Date: Wed, 31 Jul 2024 15:05:12 +0300 Subject: [PATCH 3/3] 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.