Skip to content

Commit

Permalink
Merge pull request #441 from catalyst/factor-externalpage
Browse files Browse the repository at this point in the history
Fix loading for factor settings.php to load externalpages
  • Loading branch information
keevan authored Oct 16, 2023
2 parents 78258bd + c5f19c4 commit cac6ff1
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 cac6ff1

Please sign in to comment.