Skip to content

Commit

Permalink
Fix target version number in db/upgrade.php to remove the FontAwesome…
Browse files Browse the repository at this point in the history
… files during the 4.1 -> 4.2 upgrade.
  • Loading branch information
abias committed Sep 26, 2023
1 parent 58d093c commit 9479f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,14 @@ function xmldb_theme_boost_union_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2023010521, 'theme', 'boost_union');
}

if ($oldversion < 2023010522) {
if ($oldversion < 2023090100) {
// Remove the files from the FontAwesome filearea of Boost Union as this setting was removed.
$systemcontext = context_system::instance();
$fs = get_file_storage();
$fs->delete_area_files($systemcontext->id, 'theme_boost_union', 'fontawesome');

// Boost_union savepoint reached.
upgrade_plugin_savepoint(true, 2023010522, 'theme', 'boost_union');
upgrade_plugin_savepoint(true, 2023090100, 'theme', 'boost_union');
}

return true;
Expand Down

0 comments on commit 9479f59

Please sign in to comment.