mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 06:25:33 +02:00
MDL-73200 mdl_bigbluebuttonbn: change default server_url on upgrade
This commit is contained in:
parent
3007e0e40b
commit
88ee5b8552
@ -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;
|
||||
}
|
||||
|
||||
|
@ -27,6 +27,6 @@
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
|
||||
$plugin->version = 2021091407;
|
||||
$plugin->version = 2021091408;
|
||||
$plugin->requires = 2020061500;
|
||||
$plugin->component = 'mod_bigbluebuttonbn';
|
||||
|
Loading…
x
Reference in New Issue
Block a user