mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-24777 upgrade the emoticons settings into the new format, using the default values
This commit is contained in:
parent
015ba71af0
commit
f61b376873
2 changed files with 8 additions and 1 deletions
|
@ -5310,6 +5310,13 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
|||
upgrade_main_savepoint(true, 2010101900);
|
||||
}
|
||||
|
||||
// new format of the emoticons setting
|
||||
if ($oldversion < 2010102300) {
|
||||
$DB->delete_records('config', array('name' => 'emoticons'));
|
||||
$DB->delete_records('cache_text'); // changed md5 hash calculation
|
||||
upgrade_main_savepoint(true, 2010102300);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue