Make cron a bit more rebust by changing the way the require is done. Merged from MOODLE_16_STABLE.

This commit is contained in:
tjhunt
2006-06-06 14:12:04 +00:00
parent 002ccfc7a0
commit 331ca29783
+1 -1
View File
@@ -26,7 +26,7 @@
chdir(dirname($_SERVER['argv'][0]));
}
require_once("../config.php");
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->dirroot.'/lib/adminlib.php');
if (!$alreadyadmin = isadmin()) {