From 356d74db0a75f3550a1008d6971acfa79f0e698d Mon Sep 17 00:00:00 2001 From: prasanna-lmsace <57126778+prasanna-lmsace@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:12:14 +0530 Subject: [PATCH] Fix parent node missing in admin settings. - MAG-264 --- settings.php | 17 +++++++++++------ version.php | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/settings.php b/settings.php index 08e18da..6554321 100644 --- a/settings.php +++ b/settings.php @@ -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); + +} diff --git a/version.php b/version.php index 162b1b6..bf293f9 100644 --- a/version.php +++ b/version.php @@ -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;