From c5f19c45e237f1c362cdf19f4c54da01c96e4cf0 Mon Sep 17 00:00:00 2001 From: Peter Burnett Date: Mon, 16 Oct 2023 14:51:08 +1000 Subject: [PATCH] Fix loading for factor settings.php to load externalpages --- classes/plugininfo/factor.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/classes/plugininfo/factor.php b/classes/plugininfo/factor.php index 29291f11..739f8a64 100644 --- a/classes/plugininfo/factor.php +++ b/classes/plugininfo/factor.php @@ -59,6 +59,7 @@ public static function get_factors() { return self::sort_factors_by_order($return); } + /** * Sorts factors by configured order. * @@ -260,9 +261,7 @@ public function load_settings(\part_of_admin_tree $adminroot, $parentnodename, $ $settings = new \admin_settingpage($section, $this->displayname, 'moodle/site:config', $this->is_enabled() === false); - if ($adminroot->fulltree) { - include($this->full_path('settings.php')); - } + include($this->full_path('settings.php')); $adminroot->add($parentnodename, $settings); }