Make cron a bit more rebust by changing the way the require is done. Merged from MOODLE_16_STABLE.
This commit is contained in:
+1
-1
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user