Browse Source

only check upgrade if config.php has been included before loading this file.

MOODLE_23_STABLE
Dan Marsden 12 years ago
parent
commit
bf2496652c
  1. 2
      version.php

2
version.php

@ -31,8 +31,10 @@ $module->component = 'mod_attendance';
// Nasty upgrade code to check if need to upgrade from attforblock.
// TODO: remove this asap.
if (defined('MOODLE_INTERNAL')) { // Only run if config.php has already been included.
global $DB;
if ($DB->record_exists('modules', array('name' =>'attforblock'))) {
require_once('locallib.php');
attforblock_upgrade();
}
}

Loading…
Cancel
Save