Merge branch 'MDL-56726-master-cfgadmin' of git://github.com/mudrd8mz/moodle

This commit is contained in:
Andrew Nicols 2016-11-09 14:37:47 +08:00
commit 55a3911408
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@
require_once(__DIR__ . '/../../../config.php');
require_once($CFG->libdir.'/adminlib.php');
require_once($CFG->dirroot . '/admin/tool/monitor/lib.php');
require_once($CFG->dirroot.'/'.$CFG->admin.'/tool/monitor/lib.php');
$courseid = optional_param('courseid', 0, PARAM_INT);
$action = optional_param('action', '', PARAM_ALPHA);

View File

@ -22,6 +22,7 @@
*/
// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.
// For that reason, we can't even rely on $CFG->admin being available here.
require_once(__DIR__ . '/../../../../admin/tests/behat/behat_admin.php');