Skip to content

Commit

Permalink
Fix parent node missing in admin settings.
Browse files Browse the repository at this point in the history
- MAG-264
  • Loading branch information
prasanna-lmsace committed Nov 29, 2024
1 parent 90e1ffb commit 356d74d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@

defined('MOODLE_INTERNAL') || die;

$ADMIN->add('tools', new admin_category('skills', new lang_string('pluginname', 'tool_skills')));

$settings = null; // Reset the settings.
if ($hassiteconfig) {

// Include the external page setting to manage skills.
$automation = new admin_externalpage('manageskills', get_string('skills', 'tool_skills', null, true),
new moodle_url('/admin/tool/skills/manage/list.php'), 'tool/skills:manage');
$ADMIN->add('tools', new admin_category('skills', new lang_string('pluginname', 'tool_skills')));

$ADMIN->add('tools', $automation);
$settings = null; // Reset the settings.

// Include the external page setting to manage skills.
$automation = new admin_externalpage('manageskills', get_string('skills', 'tool_skills', null, true),
new moodle_url('/admin/tool/skills/manage/list.php'), 'tool/skills:manage');

$ADMIN->add('tools', $automation);

}
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die;

$plugin->version = 2024020806;
$plugin->version = 2024020807;
$plugin->requires = 2021051700; // Requires this Moodle version.
$plugin->component = 'tool_skills'; // Full name of the plugin (used for diagnostics).
$plugin->maturity = MATURITY_STABLE;
Expand Down

0 comments on commit 356d74d

Please sign in to comment.