MDL-57678 admin: Replace usage of make_categories_options()
authorJun Pataleta <jun@moodle.com>
Tue, 7 Jul 2020 09:20:38 +0000 (17:20 +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.

lib/adminlib.php

index 8a75d3c..1a0235c 100644 (file)
@@ -4980,7 +4980,7 @@ class admin_settings_coursecat_select extends admin_setting_configselect {
         if (is_array($this->choices)) {
             return true;
         }
-        $this->choices = make_categories_options();
+        $this->choices = core_course_category::make_categories_list('', 0, ' / ');
         return true;
     }
 }