From a764855641ea4268699a09cc8d492adc366b6a6b Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Thu, 2 Nov 2017 14:58:39 +0800 Subject: [PATCH] MDL-60590 core_cohort: removed unused variables from search_cohorts() --- cohort/externallib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cohort/externallib.php b/cohort/externallib.php index 7595db020f4..7c38a8fd21b 100644 --- a/cohort/externallib.php +++ b/cohort/externallib.php @@ -324,7 +324,7 @@ class core_cohort_external extends external_api { * @return array */ public static function search_cohorts($query, $context, $includes = 'parents', $limitfrom = 0, $limitnum = 25) { - global $DB, $CFG, $PAGE; + global $CFG; require_once($CFG->dirroot . '/cohort/lib.php'); $params = self::validate_parameters(self::search_cohorts_parameters(), array( @@ -341,7 +341,6 @@ class core_cohort_external extends external_api { $limitnum = $params['limitnum']; self::validate_context($context); - $output = $PAGE->get_renderer('tool_lp'); $manager = has_capability('moodle/cohort:manage', $context); if (!$manager) {