MDL-57678 enrol_ldap: Replace usage of make_categories_options()
authorJun Pataleta <jun@moodle.com>
Tue, 7 Jul 2020 09:19:25 +0000 (17:19 +0800)
committerJun Pataleta <jun@moodle.com>
Wed, 15 Jul 2020 10:26:03 +0000 (18:26 +0800)
Replace with core_course_category::make_categories_list() instead.

enrol/ldap/settingslib.php

index 79a237f..ce372c9 100644 (file)
@@ -200,7 +200,7 @@ class enrol_ldap_admin_setting_category extends admin_setting_configselect {
             return true;
         }
 
-        $this->choices = make_categories_options();
+        $this->choices = core_course_category::make_categories_list('', 0, ' / ');
         return true;
     }
 }