diff --git a/blocks/kalturamediagallery/version.php b/blocks/kalturamediagallery/version.php index 1fbc7089..e037da29 100644 --- a/blocks/kalturamediagallery/version.php +++ b/blocks/kalturamediagallery/version.php @@ -14,11 +14,11 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2020110900; -$plugin->release = 'Kaltura release 4.3.0'; +$plugin->version = 2020110901; +$plugin->release = 'Kaltura release 4.3.1'; $plugin->requires = 2018120300; $plugin->component = 'block_kalturamediagallery'; $plugin->dependencies = array( - 'local_kaltura' => 2020110900, - 'local_kalturamediagallery' => 2020110900 + 'local_kaltura' => 2020110901, + 'local_kalturamediagallery' => 2020110901 ); diff --git a/filter/kaltura/version.php b/filter/kaltura/version.php index 982a4108..662d2761 100644 --- a/filter/kaltura/version.php +++ b/filter/kaltura/version.php @@ -24,11 +24,11 @@ */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2020110900; //version date YYYYMMDDXX 10 represent 3.0 for future option to moodle use 2 digit version +$plugin->version = 2020110901; //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.3.0'; +$plugin->release = 'Kaltura release 4.3.1'; $plugin->requires = 2018120300; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 2020110900 + 'local_kaltura' => 2020110901 ); diff --git a/lib/editor/atto/plugins/kalturamedia/version.php b/lib/editor/atto/plugins/kalturamedia/version.php index ce725a2a..ee39fb42 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 = 2020110900; // The current plugin version (Date: YYYYMMDDXX). -$plugin->release = 'Kaltura release 4.3.0'; +$plugin->version = 2020110901; // The current plugin version (Date: YYYYMMDDXX). +$plugin->release = 'Kaltura release 4.3.1'; $plugin->requires = 2018120300; // Requires this Moodle version. $plugin->component = 'atto_kalturamedia'; // Full name of the plugin (used for diagnostics). $plugin->dependencies = array( - 'local_kaltura' => 2020110900 + 'local_kaltura' => 2020110901 ); diff --git a/lib/editor/tinymce/plugins/kalturamedia/version.php b/lib/editor/tinymce/plugins/kalturamedia/version.php index 8c1b4f0a..7d01726b 100644 --- a/lib/editor/tinymce/plugins/kalturamedia/version.php +++ b/lib/editor/tinymce/plugins/kalturamedia/version.php @@ -23,12 +23,12 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2020110900; -$plugin->release = 'Kaltura release 4.3.0'; +$plugin->version = 2020110901; +$plugin->release = 'Kaltura release 4.3.1'; // Required Moodle version. $plugin->requires = 2018120300; // Full name of the plugin (used for diagnostics). $plugin->component = 'tinymce_kalturamedia'; $plugin->dependencies = array( - 'local_kaltura' => 2020110900 + 'local_kaltura' => 2020110901 ); diff --git a/local/kaltura/db/upgrade.php b/local/kaltura/db/upgrade.php index 23d9a558..45c16d63 100644 --- a/local/kaltura/db/upgrade.php +++ b/local/kaltura/db/upgrade.php @@ -73,5 +73,6 @@ function xmldb_local_kaltura_upgrade($oldversion) { // Kaltura savepoint reached. upgrade_plugin_savepoint(true, 2016120130, 'local', 'kaltura'); } + return true; -} +} \ No newline at end of file diff --git a/local/kaltura/version.php b/local/kaltura/version.php index b61c015b..d97e08bf 100644 --- a/local/kaltura/version.php +++ b/local/kaltura/version.php @@ -25,8 +25,38 @@ die('Direct access to this script is forbidden.'); } -$plugin->version = 2020110900; +$plugin->version = 2020110901; $plugin->component = 'local_kaltura'; -$plugin->release = 'Kaltura release 4.3.0'; +$plugin->release = 'Kaltura release 4.3.1'; $plugin->requires = 2018120300; $plugin->maturity = MATURITY_STABLE; + +global $DB; + +$localKalturaPluginVersionRecord = $DB->get_records_select('config_plugins', "plugin = 'local_kaltura' AND name = 'version'"); + +$kalturaPluginVersion = ""; +if ($localKalturaPluginVersionRecord) { + $localKalturaPluginVersionRecordValue = array_pop($localKalturaPluginVersionRecord); + $kalturaPluginVersion = $localKalturaPluginVersionRecordValue->value; +} + +$updatedVersion = null; +if ($kalturaPluginVersion == 20210620311) { + $updatedVersion = 2021051700; +} +else if ($kalturaPluginVersion == 20201215310 || $kalturaPluginVersion == 20210620310) { + $updatedVersion = 2020110900; +} +else if ($kalturaPluginVersion == 2020070539 || $kalturaPluginVersion == 2020121539 || $kalturaPluginVersion == 2021062039) { + $updatedVersion = 2020061500; +} + +if (!empty($updatedVersion)) { + $pluginsRecords = $DB->get_records_select('config_plugins', "name = 'version' AND value = '$kalturaPluginVersion'"); + + foreach ($pluginsRecords as $record) { + $record->value = $updatedVersion; + $DB->update_record('config_plugins', $record); + } +} \ No newline at end of file diff --git a/local/kalturamediagallery/version.php b/local/kalturamediagallery/version.php index 72ae04a6..a3ff1694 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 = 2020110900; +$plugin->version = 2020110901; $plugin->component = 'local_kalturamediagallery'; -$plugin->release = 'Kaltura release 4.3.0'; +$plugin->release = 'Kaltura release 4.3.1'; $plugin->requires = 2018120300; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 2020110900 + 'local_kaltura' => 2020110901 ); diff --git a/local/mymedia/version.php b/local/mymedia/version.php index 6dc0a067..34263746 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 = 2020110900; +$plugin->version = 2020110901; $plugin->component = 'local_mymedia'; -$plugin->release = 'Kaltura release 4.3.0'; +$plugin->release = 'Kaltura release 4.3.1'; $plugin->requires = 2018120300; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 2020110900 + 'local_kaltura' => 2020110901 ); diff --git a/mod/kalvidassign/version.php b/mod/kalvidassign/version.php index b7d86df1..033be25d 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 = 2020110900; +$plugin->version = 2020110901; $plugin->component = 'mod_kalvidassign'; -$plugin->release = 'Kaltura release 4.3.0'; +$plugin->release = 'Kaltura release 4.3.1'; $plugin->requires = 2018120300; $plugin->cron = 0; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 2020110900, + 'local_kaltura' => 2020110901, ); diff --git a/mod/kalvidres/version.php b/mod/kalvidres/version.php index d32126d0..aac095db 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 = 2020110900; +$plugin->version = 2020110901; $plugin->component = 'mod_kalvidres'; -$plugin->release = 'Kaltura release 4.3.0'; +$plugin->release = 'Kaltura release 4.3.1'; $plugin->requires = 2018120300; $plugin->cron = 0; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array( - 'local_kaltura' => 2020110900 + 'local_kaltura' => 2020110901 );