Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.

Need to migrate admin settings from config.html to settings.php for Moodle 3.3+ compatibility #34

Open
dantabel opened this issue Dec 4, 2018 · 0 comments

Comments

@dantabel
Copy link

dantabel commented Dec 4, 2018

The admin settings need to migrated from config.html to settings.php in order to stay compatible with Moodle 3.3+.

From the Moodle 3.3 release notes:
"Authentication plugins have been migrated to use the admin settings API. Plugins should use a settings.php file to manage configurations rather than using the old config.html files. See how the helper function upgrade_fix_config_auth_plugin_names() can be used to convert the legacy settings to the new ones. Another helper function upgrade_fix_config_auth_plugin_defaults() can be used to populate the settings with default values so that they are not falsely reported as newly added ones."

All references to get_config('auth/wp2moodle') need changing to get_config('auth_wp2moodle') so they can still be read after the migration.

A database upgrade function also needs creating in db/upgrade.php to convert the existing settings into the new format so that existing settings aren't lost. The methods in the release notes can be used to convert the settings.

@dantabel dantabel changed the title Need to migrate admin settings from config.html to settings.php for Moodle 3.3 compatibility Need to migrate admin settings from config.html to settings.php for Moodle 3.3+ compatibility Dec 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant