add global $CFG to hotpot_restore_dates function

This commit is contained in:
gbateson 2006-10-12 08:01:22 +00:00
parent e1c15ef7c9
commit 97782e0c07

View File

@ -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