MDL-73200 mdl_bigbluebuttonbn: change default server_url on upgrade

This commit is contained in:
jfederico 2021-12-21 20:26:07 +00:00
parent 3007e0e40b
commit 88ee5b8552
No known key found for this signature in database
GPG Key ID: 3613B29D7BACC14F
2 changed files with 12 additions and 1 deletions

View File

@ -25,6 +25,7 @@
*/
use mod_bigbluebuttonbn\plugin;
use mod_bigbluebuttonbn\local\config;
defined('MOODLE_INTERNAL') || die();
@ -420,6 +421,16 @@ function xmldb_bigbluebuttonbn_upgrade($oldversion = 0) {
upgrade_mod_savepoint(true, 2021083101, 'bigbluebuttonbn');
}
if ($oldversion < 2021091408) {
// Change BigBliueButton Server credentials to new defaults if test-install is being used.
if (config::get('server_url') == 'http://test-install.blindsidenetworks.com/bigbluebutton/') {
set_config('bigbluebuttonbn_server_url', config::DEFAULT_SERVER_URL);
set_config('bigbluebuttonbn_shared_secret', config::DEFAULT_SHARED_SECRET);
}
// Bigbluebuttonbn savepoint reached.
upgrade_mod_savepoint(true, 2021091408, 'bigbluebuttonbn');
}
return true;
}

View File

@ -27,6 +27,6 @@
defined('MOODLE_INTERNAL') || die;
$plugin->version = 2021091407;
$plugin->version = 2021091408;
$plugin->requires = 2020061500;
$plugin->component = 'mod_bigbluebuttonbn';