Skip to content

Commit

Permalink
Merge pull request #348 from kaltura/KMS-24816-moodle---changes-to-ve…
Browse files Browse the repository at this point in the history
…rsions-39

Kms 24816 moodle   changes to versions 39
  • Loading branch information
noychn-kaltura authored Nov 16, 2021
2 parents 90afcfa + 05bd166 commit c2b4fa8
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 28 deletions.
8 changes: 4 additions & 4 deletions blocks/kalturamediagallery/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021062039;
$plugin->release = 'Kaltura release 4.3.0';
$plugin->version = 2020061501;
$plugin->release = 'Kaltura release 4.3.1';
$plugin->requires = 2018120300;
$plugin->component = 'block_kalturamediagallery';
$plugin->dependencies = array(
'local_kaltura' => 2021062039,
'local_kalturamediagallery' => 2021062039
'local_kaltura' => 2020061501,
'local_kalturamediagallery' => 2020061501
);
6 changes: 3 additions & 3 deletions filter/kaltura/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
*/
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021062039; //version date YYYYMMDDXX 10 represent 3.0 for future option to moodle use 2 digit version
$plugin->version = 2020061501; //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' => 2021062039
'local_kaltura' => 2020061501
);
6 changes: 3 additions & 3 deletions lib/editor/atto/plugins/kalturamedia/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021062039; // The current plugin version (Date: YYYYMMDDXX).
$plugin->release = 'Kaltura release 4.3.0';
$plugin->version = 2020061501; // 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' => 2021062039
'local_kaltura' => 2020061501
);
6 changes: 3 additions & 3 deletions lib/editor/tinymce/plugins/kalturamedia/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021062039;
$plugin->release = 'Kaltura release 4.3.0';
$plugin->version = 2020061501;
$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' => 2021062039
'local_kaltura' => 2020061501
);
3 changes: 2 additions & 1 deletion local/kaltura/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ function xmldb_local_kaltura_upgrade($oldversion) {
// Kaltura savepoint reached.
upgrade_plugin_savepoint(true, 2016120130, 'local', 'kaltura');
}

return true;
}
}
34 changes: 32 additions & 2 deletions local/kaltura/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,38 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2021062039;
$plugin->version = 2020061501;
$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);
}
}
6 changes: 3 additions & 3 deletions local/kalturamediagallery/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2021062039;
$plugin->version = 2020061501;
$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' => 2021062039
'local_kaltura' => 2020061501
);
6 changes: 3 additions & 3 deletions local/mymedia/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2021062039;
$plugin->version = 2020061501;
$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' => 2021062039
'local_kaltura' => 2020061501
);
6 changes: 3 additions & 3 deletions mod/kalvidassign/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2021062039;
$plugin->version = 2020061501;
$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' => 2021062039,
'local_kaltura' => 2020061501,
);
6 changes: 3 additions & 3 deletions mod/kalvidres/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2021062039;
$plugin->version = 2020061501;
$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' => 2021062039
'local_kaltura' => 2020061501
);

0 comments on commit c2b4fa8

Please sign in to comment.