Skip to content

Commit

Permalink
Disable callbacks during upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
fmido88 authored Feb 9, 2024
1 parent 881d403 commit b4edc37
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@
*/

defined('MOODLE_INTERNAL') || die();
global $CFG;
require_once("$CFG->dirroot/enrol/wallet/extendlib.php");

// Disable all callbacks during upgrade.
$version = get_config('enrol_wallet', 'version');
if ($version >= 2024020923) {
global $CFG;
require_once("$CFG->dirroot/enrol/wallet/extendlib.php");
}

use enrol_wallet\form\enrol_form;
use enrol_wallet\form\empty_form;
Expand Down

0 comments on commit b4edc37

Please sign in to comment.