mirror of
https://github.com/moodle/moodle.git
synced 2025-06-01 21:55:12 +02:00
MDL-32450 upgrade: do not remove DragMath settings if the files still exist
This commit is contained in:
parent
1170df12a1
commit
e3e4ea97ff
@ -3677,9 +3677,12 @@ function xmldb_main_upgrade($oldversion) {
|
||||
}
|
||||
|
||||
if ($oldversion < 2014062600.01) {
|
||||
// Purge DragMath plugin which is incompatible with GNU GPL license.
|
||||
// Hacky emulation of plugin uninstallation.
|
||||
unset_all_config_for_plugin('tinymce_dragmath');
|
||||
// We only want to delete DragMath if the directory no longer exists. If the directory
|
||||
// is present then it means it has been restored, so do not perform the uninstall.
|
||||
if (!check_dir_exists($CFG->libdir . '/editor/tinymce/plugins/dragmath', false)) {
|
||||
// Purge DragMath plugin which is incompatible with GNU GPL license.
|
||||
unset_all_config_for_plugin('tinymce_dragmath');
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2014062600.01);
|
||||
|
Loading…
x
Reference in New Issue
Block a user