File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -292,7 +292,15 @@ function xmldb_moodleoverflow_upgrade($oldversion) {
292292 upgrade_mod_savepoint (true , 2023040400 , 'moodleoverflow ' );
293293 }
294294
295- if ($ oldversion < 2024061700 ) {
295+ if ($ oldversion < 2024072600 ) {
296+ require_once ($ CFG ->dirroot . '/mod/moodleoverflow/db/upgradelib.php ' );
297+
298+ mod_moodleoverflow_move_draftfiles_to_permanent_filearea ();
299+
300+ upgrade_mod_savepoint (true , 2024072600 , 'moodleoverflow ' );
301+ }
302+
303+ if ($ oldversion < 2025031200 ) {
296304 // Define table moodleoverflow to be edited.
297305 $ table = new xmldb_table ('moodleoverflow ' );
298306
@@ -309,13 +317,5 @@ function xmldb_moodleoverflow_upgrade($oldversion) {
309317 upgrade_mod_savepoint (true , 2024061700 , 'moodleoverflow ' );
310318 }
311319
312- if ($ oldversion < 2024072600 ) {
313- require_once ($ CFG ->dirroot . '/mod/moodleoverflow/db/upgradelib.php ' );
314-
315- mod_moodleoverflow_move_draftfiles_to_permanent_filearea ();
316-
317- upgrade_mod_savepoint (true , 2024072600 , 'moodleoverflow ' );
318- }
319-
320320 return true ;
321321}
Original file line number Diff line number Diff line change 2828defined ('MOODLE_INTERNAL ' ) || die ();
2929
3030$ plugin ->component = 'mod_moodleoverflow ' ;
31- $ plugin ->version = 2024082700 ;
31+ $ plugin ->version = 2025031200 ;
3232$ plugin ->release = 'v4.4-r3 ' ;
3333$ plugin ->requires = 2022112800 ; // Requires 4.1+ Moodle version.
3434$ plugin ->maturity = MATURITY_STABLE ;
You can’t perform that action at this time.
0 commit comments