Skip to content

Commit

Permalink
Fix codechecker failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Jun 18, 2024
1 parent d68a440 commit 175096d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions classes/output/mobile.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public static function main_view($args) {

// Pre-format some of the texts for the mobile app.
$subcourse->name = \core_external\util::format_string($subcourse->name, $context);
[$subcourse->intro, $subcourse->introformat] = \core_external\util::format_text($subcourse->intro, $subcourse->introformat, $context,
'mod_subcourse', 'intro');
[$subcourse->intro, $subcourse->introformat] = \core_external\util::format_text($subcourse->intro, $subcourse->introformat,
$context, 'mod_subcourse', 'intro');

$data = [
'cmid' => $cm->id,
Expand Down
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,4 +438,4 @@ function subcourse_update_grades($subcourse, $userid=0, $nullifnone=true) {
} else {
return subcourse_grade_item_update($subcourse);
}
}
}
2 changes: 1 addition & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 0 additions & 2 deletions tests/output_mobile_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
$plugin->release = 2023122200;
$plugin->version = 2024061400;
$plugin->maturity = MATURITY_STABLE;
$plugin->requires = 2024041200; // Requires 4.4
$plugin->requires = 2024041200; // Requires 4.4.
$plugin->supported = [404, 404];

0 comments on commit 175096d

Please sign in to comment.