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