mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-75072 mod_forum: Drop usecoursefullname forum setting
This commit is contained in:
parent
564d0d73f4
commit
d4fe1b3065
@ -338,5 +338,22 @@ function xmldb_forum_upgrade($oldversion) {
|
||||
// Automatically generated Moodle v4.0.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
if ($oldversion < 2022062700) {
|
||||
// Unset $CFG->forum_usecoursefullname.
|
||||
unset_config('forum_usecoursefullname');
|
||||
|
||||
// Define field usecoursefullname to be dropped from forum.
|
||||
$table = new xmldb_table('forum');
|
||||
$field = new xmldb_field('usecoursefullname');
|
||||
|
||||
// Conditionally launch drop field usecoursefullname.
|
||||
if ($dbman->field_exists($table, $field)) {
|
||||
$dbman->drop_field($table, $field);
|
||||
}
|
||||
|
||||
// Forum savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2022062700, 'forum');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2022041900; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2022062700; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2022041200; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)
|
||||
|
Loading…
x
Reference in New Issue
Block a user