From: gbateson Date: Thu, 12 Oct 2006 08:01:22 +0000 (+0000) Subject: add global $CFG to hotpot_restore_dates function X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=97782e0c0760f89758f6adecd07705d80d5cbe25;p=moodle.git add global $CFG to hotpot_restore_dates function --- diff --git a/mod/hotpot/restorelib.php b/mod/hotpot/restorelib.php index 1b1b6713f6..ff1d1842ec 100644 --- a/mod/hotpot/restorelib.php +++ b/mod/hotpot/restorelib.php @@ -480,6 +480,7 @@ function hotpot_restore_logs($restore, $log) { return $status ? $log : false; } function hotpot_restore_dates($recordtype, &$restore, &$xml, $TAGS, $NAMETAG='NAME') { + global $CFG; if (!empty($restore->course_startdateoffset)) { // check course backup data directory exists