MDL-51824 auth: include required CLI library
authorSimey Lameze <simey@moodle.com>
Mon, 26 Oct 2015 07:52:11 +0000 (15:52 +0800)
committerSimey Lameze <simey@moodle.com>
Mon, 26 Oct 2015 07:52:11 +0000 (15:52 +0800)
auth/cas/cli/sync_users.php
auth/ldap/cli/sync_users.php

index 3498f8f..a78f91d 100644 (file)
@@ -44,6 +44,7 @@ define('CLI_SCRIPT', true);
 
 require(dirname(dirname(dirname(dirname(__FILE__)))).'/config.php');
 require_once($CFG->dirroot.'/course/lib.php');
+require_once($CFG->libdir.'/clilib.php');
 
 // Ensure errors are well explained
 set_debugging(DEBUG_DEVELOPER, true);
index 5de52e0..ee44dcf 100644 (file)
@@ -48,6 +48,7 @@ define('CLI_SCRIPT', true);
 
 require(dirname(dirname(dirname(dirname(__FILE__)))).'/config.php'); // global moodle config file.
 require_once($CFG->dirroot.'/course/lib.php');
+require_once($CFG->libdir.'/clilib.php');
 
 // Ensure errors are well explained
 set_debugging(DEBUG_DEVELOPER, true);