mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
MDL-83332 core: Remove slasharguments config modification lines
MDL-62640 removed the 'slasharguments' config, and 3229dda3 attempted to restore it by setting it to 1. This could unintentionally reset the 'slasharguments' config for all sites upgrading to 4.5.
This commit is contained in:
parent
83526c7a2d
commit
6399179739
@ -1421,14 +1421,6 @@ function xmldb_main_upgrade($oldversion) {
|
||||
upgrade_main_savepoint(true, 2024092000.01);
|
||||
}
|
||||
|
||||
if ($oldversion < 2024092400.01) {
|
||||
// The slasharguments setting has been removed.
|
||||
unset_config('slasharguments');
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2024092400.01);
|
||||
}
|
||||
|
||||
if ($oldversion < 2024092600.00) {
|
||||
// If h5plib_v126 is no longer present, remove it.
|
||||
if (!file_exists($CFG->dirroot . '/h5p/h5plib/v126/version.php')) {
|
||||
@ -1445,13 +1437,5 @@ function xmldb_main_upgrade($oldversion) {
|
||||
upgrade_main_savepoint(true, 2024092600.00);
|
||||
}
|
||||
|
||||
if ($oldversion < 2024100100.01) {
|
||||
// Set the slasharguments to 1 as default.
|
||||
set_config('slasharguments', 1);
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2024100100.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user