Skip to content

Commit cd7ebe5

Browse files
committedJan 25, 2025
Delete stray dead code
1 parent 5ab097f commit cd7ebe5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎db/upgradelib.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ function moodle5_top_category() {
195195
mtrace('CodeRunner: creating new system question bank');
196196
$newmod = question_bank_helper::create_default_open_instance($course, $bankname, question_bank_helper::TYPE_SYSTEM);
197197
}
198-
$CFG->upgraderunning = $savedupgradestatus;
199198
} catch (Exception $e) {
200-
$CFG->upgraderunning = $savedupgradestatus;
201199
throw new coding_exception('Upgrade failed: error creating system question bank');
202200
}
203201
$newtopcategory = question_get_top_category($newmod->context->id, true);

0 commit comments

Comments
 (0)