From c16be9fd74dd1d964344f2b7f4966c86a05e51f6 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 19 Jun 2024 11:05:30 +1200 Subject: [PATCH] Fix codechecker failures and correct version bump for 4.2 brnach. --- lib.php | 2 +- settings.php | 2 +- tests/output_mobile_test.php | 2 -- version.php | 4 ++-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib.php b/lib.php index 427de9e..f489b2c 100644 --- a/lib.php +++ b/lib.php @@ -438,4 +438,4 @@ function subcourse_update_grades($subcourse, $userid=0, $nullifnone=true) { } else { return subcourse_grade_item_update($subcourse); } -} \ No newline at end of file +} diff --git a/settings.php b/settings.php index 009f4f9..f0772df 100644 --- a/settings.php +++ b/settings.php @@ -46,7 +46,7 @@ get_string('settings:coursepageprintgrade_desc', 'mod_subcourse'), 1 )); - + $settings->add(new admin_setting_configcheckbox( 'mod_subcourse/displayhiddencourses', get_string('settings:displayhiddencourses', 'mod_subcourse'), diff --git a/tests/output_mobile_test.php b/tests/output_mobile_test.php index d508dc8..1ebdb12 100644 --- a/tests/output_mobile_test.php +++ b/tests/output_mobile_test.php @@ -23,8 +23,6 @@ namespace mod_subcourse; -defined('MOODLE_INTERNAL') || die(); - /** * Unit tests for the methods provided by the {@see \mod_subcourse\output\mobile} class. * diff --git a/version.php b/version.php index 1fda4ef..b494cb0 100644 --- a/version.php +++ b/version.php @@ -25,8 +25,8 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'mod_subcourse'; -$plugin->release = 2023122200; -$plugin->version = 2024061400; +$plugin->release = 2023122201; +$plugin->version = 2023122201; $plugin->maturity = MATURITY_STABLE; $plugin->requires = 2023042400; // Requires 4.2 $plugin->supported = [402, 403];