diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 33f888b9f6c..c67eb530610 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -3268,12 +3268,12 @@ privatefiles,moodle|/user/files.php'; upgrade_main_savepoint(true, 2023042400.03); } - if ($oldversion < 2023042401.08) { + if ($oldversion < 2023042401.09) { // Upgrade yaml mime type for existing yaml and yml files. - $filetypes = array( + $filetypes = [ '%.yaml' => 'application/yaml', '%.yml' => 'application/yaml,' - ); + ]; $select = $DB->sql_like('filename', '?', false); foreach ($filetypes as $extension => $mimetype) { @@ -3282,12 +3282,12 @@ privatefiles,moodle|/user/files.php'; 'mimetype', $mimetype, $select, - array($extension) + [$extension] ); } // Main savepoint reached. - upgrade_main_savepoint(true, 2023042401.08); + upgrade_main_savepoint(true, 2023042401.09); } return true; diff --git a/version.php b/version.php index fa75df29b03..0551cb65246 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2023042401.08; // 20230424 = branching date YYYYMMDD - do not modify! +$version = 2023042401.09; // 20230424 = branching date YYYYMMDD - do not modify! // RR = release increments - 00 in DEV branches. // .XX = incremental changes. $release = '4.2.1+ (Build: 20230728)'; // Human-friendly version name