Skip to content

Commit

Permalink
MDL-39538 use of deprecated function make_categories_list()
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed May 7, 2013
1 parent 95190fd commit 4c3f33d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions badges/criteria/award_criteria_courseset.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ public function get_courses(&$mform) {
// Get courses with enabled completion.
$courses = $DB->get_records('course', array('enablecompletion' => COMPLETION_ENABLED));
if (!empty($courses)) {
$list = array();
$parents = array();
make_categories_list($list, $parents);
require_once($CFG->libdir . '/coursecatlib.php');
$list = coursecat::make_categories_list();

$select = array();
$selected = array();
Expand Down

0 comments on commit 4c3f33d

Please sign in to comment.