MDL-32827 calendar: include global to check for events with courseid as siteid

This commit is contained in:
Ankit Agarwal 2012-08-01 10:17:31 +08:00 committed by Sam Hemelryk
parent a9dcb44830
commit 6efb36babf

View file

@ -53,7 +53,7 @@ defined('MOODLE_INTERNAL') || die();
* @return bool always true
*/
function xmldb_main_upgrade($oldversion) {
global $CFG, $USER, $DB, $OUTPUT;
global $CFG, $USER, $DB, $OUTPUT, $SITE;
require_once($CFG->libdir.'/db/upgradelib.php'); // Core Upgrade-related functions