Skip to content

Commit

Permalink
Fix loading for factor settings.php to load externalpages
Browse files Browse the repository at this point in the history
  • Loading branch information
Peterburnett committed Oct 16, 2023
1 parent dbf1c48 commit c5f19c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions classes/plugininfo/factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static function get_factors() {
return self::sort_factors_by_order($return);
}


/**
* Sorts factors by configured order.
*
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit c5f19c4

Please sign in to comment.