Skip to content

Commit

Permalink
MDL-73200 mdl_bigbluebuttonbn: change default server_url on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jfederico committed Dec 21, 2021
1 parent 3007e0e commit 88ee5b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions mod/bigbluebuttonbn/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/

use mod_bigbluebuttonbn\plugin;
use mod_bigbluebuttonbn\local\config;

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

Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion mod/bigbluebuttonbn/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
defined('MOODLE_INTERNAL') || die;


$plugin->version = 2021091407;
$plugin->version = 2021091408;
$plugin->requires = 2020061500;
$plugin->component = 'mod_bigbluebuttonbn';

0 comments on commit 88ee5b8

Please sign in to comment.