From 0bc41cfcecbdeb21ce5759b86e235802b6400971 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Mon, 26 Oct 2015 15:52:11 +0800 Subject: [PATCH] MDL-51824 auth: include required CLI library --- auth/cas/cli/sync_users.php | 1 + auth/ldap/cli/sync_users.php | 1 + 2 files changed, 2 insertions(+) diff --git a/auth/cas/cli/sync_users.php b/auth/cas/cli/sync_users.php index 3498f8fbff3..a78f91dd182 100644 --- a/auth/cas/cli/sync_users.php +++ b/auth/cas/cli/sync_users.php @@ -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); diff --git a/auth/ldap/cli/sync_users.php b/auth/ldap/cli/sync_users.php index 5de52e0e08d..ee44dcf6606 100644 --- a/auth/ldap/cli/sync_users.php +++ b/auth/ldap/cli/sync_users.php @@ -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);